[Astal] Prepare for reloadable style

This commit is contained in:
2026-01-09 16:04:51 +01:00
parent c2cd216dac
commit 11767c3009
7 changed files with 38 additions and 33 deletions

View File

@@ -93,8 +93,13 @@ App.start( {
res( 'No controllable screen available' );
}
} catch ( e ) {
print( e );
res( 'Error running brightness change' );
}
} else if ( args[ 0 ] === 'reload-style' ) {
res( 'Reloading style sheets' );
App.apply_css( '', true );
// TODO: Compile scss and then load it
}
// } else if ( args[ 0 ] === 'launcher' ) {
// if ( args[ 1 ] === 'show' ) {

View File

@@ -1,6 +1,6 @@
$fg-color: #C8DCFF;
$bg-color: #0A0A0F;
$accent-color: #591641;
$accent-color-2: #97103A;
$accent-color: #465B4E;
$accent-color-2: #324E12;
$shadow-color: rgba(0, 0, 2, 0.3);
$monospace-font: Source Code Pro

View File

@@ -4,10 +4,10 @@
# ╰────────────────────────────────────────────────╯
# ────────────────────────────────────────────────────────────────────
exec = swaybg -m fill -i /home/janis/NextCloud/Wallpapers/dark/colour-explosion.jpg
exec = swaybg -m fill -i /home/janis/NextCloud/Wallpapers/hypercar/peugeot_9x8.jpg
general {
col.active_border = rgba(591641cc) rgba(97103acc) rgba(2d2057cc) 45deg
col.active_border = rgba(465b4ecc) rgba(324e12cc) rgba(19301ecc) 45deg
col.inactive_border = rgb(000000)
}

View File

@@ -14,7 +14,7 @@
# └ ┘
background {
monitor =
path = /home/janis/NextCloud/Wallpapers/dark/mountains.jpg # Or screenshot
path = /home/janis/NextCloud/Wallpapers/hypercar/ferrari_499p-closeup.jpg # Or screenshot
blur_passes = 1
}
@@ -29,7 +29,7 @@ input-field {
dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0
dots_center = false
outer_color = rgb(89, 22, 65)
outer_color = rgb(70, 91, 78)
inner_color = rgb(200, 200, 200)
font_color = rgb(10, 10, 10)
fade_on_empty = true

View File

@@ -2,9 +2,9 @@
background: #0A0A0F;
background-selected: #141419;
foreground: #C8DCFF;
accent: #591641;
accent-two: #97103A;
// border-color: #2D2057;
accent: #465B4E;
accent-two: #324E12;
// border-color: #19301E;
inactive: #C8C8C8;
spacing: 2;
width: 30em;

View File

@@ -22,11 +22,11 @@ button {
}
button:hover {
background-color: rgba(151, 16, 58, 0.5);
background-color: rgba(50, 78, 18, 0.5);
}
button:focus {
background-color: rgb(151, 16, 58);
background-color: rgb(50, 78, 18);
color: rgb(200, 220, 255);
}