Update dependencies (#282)

This commit is contained in:
Philip Kristoffersen
2022-12-26 14:58:31 +01:00
committed by GitHub
parent 8d3c27c822
commit e76c84b130
8 changed files with 938 additions and 678 deletions
+2 -2
View File
@@ -90,8 +90,8 @@ impl AmazonPlatform {
let mut statement =
connection.prepare("SELECT Id, ProductTitle FROM DbSet WHERE Installed = 1")?;
while let State::Row = statement.next().unwrap() {
let id = statement.read::<String>(0);
let title = statement.read::<String>(1);
let id = statement.read::<String,usize>(0);
let title = statement.read::<String,usize>(1);
if let (Ok(id), Ok(title)) = (id, title) {
result.push(AmazonGame {
title,
+7 -4
View File
@@ -330,10 +330,13 @@ fn serialize_collection_value<S: AsRef<str>>(name: S, game_ids: &[usize]) -> Str
}
fn name_to_key<S: AsRef<str>>(name: S) -> String {
let config = base64::Config::new(base64::CharacterSet::Standard, false);
let base64 = base64::encode_config(name.as_ref(), config);
let key = format!("{}-{}", BOILR_TAG, base64);
key
let base64 = base64::encode(name.as_ref());
let base64_no_end = if base64.ends_with("==") {
&base64[..base64.len() - 2]
} else {
&base64
};
format!("{}-{}", BOILR_TAG, base64_no_end)
}
fn parse_steam_collections<S: AsRef<str>>(
+3 -3
View File
@@ -348,7 +348,7 @@ impl MyEguiApp {
let handle = ui.ctx().load_texture(
&image_key,
image_data,
egui::TextureFilter::Linear,
egui::TextureOptions::LINEAR,
);
*state.value_mut() =
TextureState::Loaded(handle);
@@ -750,7 +750,7 @@ impl MyEguiApp {
if let Ok(image) = image {
let texture = ui
.ctx()
.load_texture(&key, image, egui::TextureFilter::Linear);
.load_texture(&key, image, egui::TextureOptions::LINEAR);
state
.image_handles
.insert(key, TextureState::Loaded(texture));
@@ -791,7 +791,7 @@ fn load_image_grids(user: &SteamUsersInfo, state: &mut ImageSelectState, ui: &mu
if let Ok(image) = image {
let texture = ui
.ctx()
.load_texture(&key, image, egui::TextureFilter::Linear);
.load_texture(&key, image, egui::TextureOptions::LINEAR);
state
.image_handles
.insert(key, TextureState::Loaded(texture));
+4 -3
View File
@@ -273,6 +273,7 @@ fn create_style(style: &mut egui::Style) {
style.spacing.item_spacing = egui::vec2(15.0, 15.0);
style.visuals.button_frame = false;
style.visuals.dark_mode = true;
style.visuals.panel_fill = BACKGROUND_COLOR;
style.visuals.override_text_color = Some(TEXT_COLOR);
style.visuals.widgets.noninteractive.rounding = Rounding {
ne: 0.0,
@@ -307,7 +308,7 @@ impl MyEguiApp {
ui.ctx().load_texture(
"import_image",
get_import_image(),
egui::TextureFilter::Linear,
egui::TextureOptions::LINEAR,
)
})
}
@@ -316,7 +317,7 @@ impl MyEguiApp {
self.ui_images.save_button.get_or_insert_with(|| {
// Load the texture only once.
ui.ctx()
.load_texture("save_image", get_save_image(), egui::TextureFilter::Linear)
.load_texture("save_image", get_save_image(), egui::TextureOptions::LINEAR)
})
}
@@ -324,7 +325,7 @@ impl MyEguiApp {
self.ui_images.logo_32.get_or_insert_with(|| {
// Load the texture only once.
ui.ctx()
.load_texture("logo32", get_logo(), egui::TextureFilter::Linear)
.load_texture("logo32", get_logo(), egui::TextureOptions::LINEAR)
})
}
}