Skip to content

Commit

Permalink
feat: change default window border colors
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Jul 29, 2024
1 parent 9ed53f2 commit 1cdf8b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/wm/src/user_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ pub struct WindowEffectConfig {
#[serde(rename_all(serialize = "camelCase"))]
pub struct BorderEffectConfig {
/// Whether to enable the effect.
#[serde(default = "default_bool::<false>")]
pub enabled: bool,

/// Color of the window border.
Expand Down Expand Up @@ -559,8 +560,8 @@ const fn default_bool<const V: bool>() -> bool {
/// Helper function for setting a default value for a color field.
const fn default_blue() -> Color {
Color {
r: 0,
g: 0,
r: 140,
g: 190,
b: 255,
a: 255,
}
Expand Down
5 changes: 3 additions & 2 deletions resources/assets/sample-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ window_effects:
# ** Exclusive to Windows 11 due to API limitations.
border:
enabled: true
color: '#0000ff'
color: '#8dbcff'

# Visual effects to apply to non-focused windows.
other_windows:
border:
enabled: false
enabled: true
color: '#a1a1a1'

window_behavior:
# New windows are created in this state whenever possible.
Expand Down

0 comments on commit 1cdf8b0

Please sign in to comment.