Skip to content

Commit a8edc92

Browse files
authored
feat(theme): dynamic material theming from wallpaper (#98)
1 parent 9accd0c commit a8edc92

13 files changed

Lines changed: 1242 additions & 164 deletions

File tree

Cargo.lock

Lines changed: 219 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,9 @@ parking_lot = "0.12"
6363
# HTTP
6464
minreq = { version = "2.14", default-features = false, features = ["https-rustls"] }
6565

66+
# Color extraction
67+
material-colors = { version = "0.4.2" }
68+
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "webp"] }
69+
6670
# Internal crates
6771
vibepanel-core = { path = "crates/vibepanel-core" }

config.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# =============================================================================
1313

1414
[bar]
15-
position = "top" # "top" or "bottom"
15+
position = "top" # "top" or "bottom"
1616
size = 32
1717
border_radius = 30
1818
background_opacity = 0.0 # 0.0 = transparent (islands), 1.0 = solid
@@ -70,7 +70,11 @@ background_opacity = 1.0
7070

7171
[theme]
7272
mode = "dark" # "auto", "dark", "light", "gtk"
73-
#accent = "#adabe0" # "gtk", "none", or hex color
73+
# "auto" = wallpaper-adaptive theming
74+
# (detects from hyprpaper, awww/swww, wpaperd, waypaper)
75+
#scheme = "dark" # Material You polarity: "dark" or "light" (auto mode only)
76+
#wallpaper = "/path/to/image.png" # Explicit wallpaper for auto mode (default: auto-detect)
77+
#accent = "#adabe0" # "gtk", "none", or hex color (ignored in auto mode)
7478
#animations = true # Enable/disable all CSS transitions and animations
7579
#ripple = true # Enable/disable Material Design ripple effect on click
7680

0 commit comments

Comments
 (0)