feat: set qt icon theme (Breeze) and widget style (qt6ct)
This commit is contained in:
parent
434a7374a8
commit
db763e63a7
1 changed files with 10 additions and 3 deletions
|
|
@ -115,7 +115,10 @@ impl Theme {
|
|||
// tool tips, "What's This" tips, and similar elements
|
||||
let tooltip_colors = &window_colors;
|
||||
|
||||
let light_or_dark = if self.is_dark { "Dark" } else { "Light" };
|
||||
let general_color_scheme = if self.is_dark { "CosmicDark" } else { "CosmicLight" };
|
||||
let general_name = if self.is_dark { "COSMIC Dark" } else { "COSMIC Light" };
|
||||
// COSMIC icons are stuck in light mode, so use breeze instead
|
||||
let icons_theme = if self.is_dark { "breeze-dark" } else { "breeze" };
|
||||
|
||||
format!(
|
||||
r#"# GENERATED BY COSMIC
|
||||
|
|
@ -153,12 +156,16 @@ Enable=false
|
|||
{}
|
||||
|
||||
[General]
|
||||
ColorScheme=Cosmic{light_or_dark}
|
||||
Name=COSMIC {light_or_dark}
|
||||
ColorScheme={general_color_scheme}
|
||||
Name={general_name}
|
||||
shadeSortColumn=true
|
||||
|
||||
[Icons]
|
||||
Theme={icons_theme}
|
||||
|
||||
[KDE]
|
||||
contrast=4
|
||||
widgetStyle=qt6ct-style
|
||||
|
||||
[WM]
|
||||
{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue