Use 85% opacity by default
This commit is contained in:
parent
a46c5e8219
commit
2193003ada
4 changed files with 22 additions and 18 deletions
32
Cargo.lock
generated
32
Cargo.lock
generated
|
|
@ -874,7 +874,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-config"
|
name = "cosmic-config"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"atomicwrites",
|
"atomicwrites",
|
||||||
"cosmic-config-derive",
|
"cosmic-config-derive",
|
||||||
|
|
@ -888,7 +888,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-config-derive"
|
name = "cosmic-config-derive"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"quote",
|
"quote",
|
||||||
"syn 1.0.109",
|
"syn 1.0.109",
|
||||||
|
|
@ -929,7 +929,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-theme"
|
name = "cosmic-theme"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"almost",
|
"almost",
|
||||||
"cosmic-config",
|
"cosmic-config",
|
||||||
|
|
@ -1958,7 +1958,7 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced"
|
name = "iced"
|
||||||
version = "0.12.0"
|
version = "0.12.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"iced_accessibility",
|
"iced_accessibility",
|
||||||
"iced_core",
|
"iced_core",
|
||||||
|
|
@ -1973,7 +1973,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_accessibility"
|
name = "iced_accessibility"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"accesskit",
|
"accesskit",
|
||||||
"accesskit_winit",
|
"accesskit_winit",
|
||||||
|
|
@ -1982,7 +1982,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_core"
|
name = "iced_core"
|
||||||
version = "0.12.0"
|
version = "0.12.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.3.2",
|
"bitflags 1.3.2",
|
||||||
"instant",
|
"instant",
|
||||||
|
|
@ -1998,7 +1998,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_futures"
|
name = "iced_futures"
|
||||||
version = "0.12.0"
|
version = "0.12.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures",
|
"futures",
|
||||||
"iced_core",
|
"iced_core",
|
||||||
|
|
@ -2011,7 +2011,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_graphics"
|
name = "iced_graphics"
|
||||||
version = "0.12.0"
|
version = "0.12.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.3.2",
|
"bitflags 1.3.2",
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
|
|
@ -2034,7 +2034,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_renderer"
|
name = "iced_renderer"
|
||||||
version = "0.12.0"
|
version = "0.12.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"iced_graphics",
|
"iced_graphics",
|
||||||
"iced_tiny_skia",
|
"iced_tiny_skia",
|
||||||
|
|
@ -2047,7 +2047,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_runtime"
|
name = "iced_runtime"
|
||||||
version = "0.12.0"
|
version = "0.12.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"iced_core",
|
"iced_core",
|
||||||
"iced_futures",
|
"iced_futures",
|
||||||
|
|
@ -2057,7 +2057,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_style"
|
name = "iced_style"
|
||||||
version = "0.12.0"
|
version = "0.12.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"iced_core",
|
"iced_core",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
|
|
@ -2067,7 +2067,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_tiny_skia"
|
name = "iced_tiny_skia"
|
||||||
version = "0.12.0"
|
version = "0.12.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
"cosmic-text",
|
"cosmic-text",
|
||||||
|
|
@ -2085,7 +2085,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_wgpu"
|
name = "iced_wgpu"
|
||||||
version = "0.12.0"
|
version = "0.12.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.3.2",
|
"bitflags 1.3.2",
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
|
|
@ -2105,7 +2105,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_widget"
|
name = "iced_widget"
|
||||||
version = "0.12.0"
|
version = "0.12.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"iced_renderer",
|
"iced_renderer",
|
||||||
"iced_runtime",
|
"iced_runtime",
|
||||||
|
|
@ -2119,7 +2119,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_winit"
|
name = "iced_winit"
|
||||||
version = "0.12.0"
|
version = "0.12.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"iced_graphics",
|
"iced_graphics",
|
||||||
"iced_runtime",
|
"iced_runtime",
|
||||||
|
|
@ -2382,7 +2382,7 @@ checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4"
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libcosmic"
|
name = "libcosmic"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic.git#18a5c670656f53aed4b9318b633f925403ba2e02"
|
source = "git+https://github.com/pop-os/libcosmic.git?branch=content-container#5e7b82f6b5a7396e888c4ca819f22663efcf6111"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"apply",
|
"apply",
|
||||||
"ashpd",
|
"ashpd",
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,10 @@ branch = "refactor"
|
||||||
|
|
||||||
[dependencies.libcosmic]
|
[dependencies.libcosmic]
|
||||||
git = "https://github.com/pop-os/libcosmic.git"
|
git = "https://github.com/pop-os/libcosmic.git"
|
||||||
|
branch = "content-container"
|
||||||
default-features = false
|
default-features = false
|
||||||
features = ["tokio", "winit"]
|
features = ["tokio", "winit"]
|
||||||
|
#path = "../libcosmic"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["wgpu"]
|
default = ["wgpu"]
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,9 @@ impl cosmic::Application for App {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates the application, and optionally emits command on initialize.
|
/// 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 {
|
let mut app = App {
|
||||||
core,
|
core,
|
||||||
tab_model: segmented_button::ModelBuilder::default().build(),
|
tab_model: segmented_button::ModelBuilder::default().build(),
|
||||||
|
|
|
||||||
|
|
@ -220,7 +220,7 @@ where
|
||||||
background_color.r() as f32 / 255.0,
|
background_color.r() as f32 / 255.0,
|
||||||
background_color.g() as f32 / 255.0,
|
background_color.g() as f32 / 255.0,
|
||||||
background_color.b() 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 */
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue