Use 85% opacity by default

This commit is contained in:
Jeremy Soller 2023-12-21 11:57:52 -07:00
parent a46c5e8219
commit 2193003ada
4 changed files with 22 additions and 18 deletions

View file

@ -98,7 +98,9 @@ impl cosmic::Application for App {
}
/// Creates the application, and optionally emits command on initialize.
fn init(core: Core, term_config: Self::Flags) -> (Self, Command<Self::Message>) {
fn init(mut core: Core, term_config: Self::Flags) -> (Self, Command<Self::Message>) {
core.window.content_container = false;
let mut app = App {
core,
tab_model: segmented_button::ModelBuilder::default().build(),

View file

@ -220,7 +220,7 @@ where
background_color.r() as f32 / 255.0,
background_color.g() as f32 / 255.0,
background_color.b() as f32 / 255.0,
background_color.a() as f32 / 255.0,
0.85, /* background_color.a() as f32 / 255.0 */
),
);
}