inactive one in a multiple monitor setup. Fixed a bug where the workspace widget wouldn't update when switching workspaces between monitors.
224 lines
4.1 KiB
SCSS
224 lines
4.1 KiB
SCSS
@use "/tmp/ags-colors.scss" as wal;
|
|
|
|
$fg-color: wal.$foreground;
|
|
$bg-color: rgba(wal.$background, 0.8);
|
|
|
|
// Unified sizing variables
|
|
$btn-height: 30px;
|
|
$btn-radius: 8px;
|
|
$btn-margin: 4px 2px;
|
|
$icon-size: 16px;
|
|
|
|
window.Bar {
|
|
background: transparent;
|
|
color: $fg-color;
|
|
font-weight: bold;
|
|
|
|
> centerbox {
|
|
background: $bg-color;
|
|
border-radius: 10px;
|
|
margin: 4px 8px;
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.left-box,
|
|
.center-box,
|
|
.right-box {
|
|
padding: 0 4px;
|
|
}
|
|
|
|
// Base button styling for absolute uniformity
|
|
button {
|
|
border-radius: $btn-radius;
|
|
margin: $btn-margin;
|
|
min-height: $btn-height;
|
|
transition: all 0.2s ease-in-out;
|
|
background: rgba(
|
|
150,
|
|
150,
|
|
150,
|
|
0.1
|
|
); // Slight base background for all buttons
|
|
border: none;
|
|
box-shadow: none;
|
|
|
|
&:hover {
|
|
background: rgba(wal.$foreground, 0.15);
|
|
}
|
|
}
|
|
|
|
.workspaces {
|
|
.workspace-btn {
|
|
min-width: $btn-height; // Base square size
|
|
padding: 0;
|
|
border-radius: 100px; // Pill shape instead of blocky squares
|
|
background-color: transparent;
|
|
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
|
|
&.active-focused-monitor {
|
|
min-width: 45px; // Horizontal expansion, slightly less wide
|
|
background-color: wal.$color2;
|
|
color: wal.$background;
|
|
}
|
|
|
|
&.active-unfocused-monitor {
|
|
min-width: 45px;
|
|
background-color: rgba(wal.$color4, 0.35);
|
|
color: wal.$foreground;
|
|
}
|
|
|
|
&:hover:not(.active-focused-monitor):not(.active-unfocused-monitor) {
|
|
background-color: rgba(wal.$color2, 0.2);
|
|
}
|
|
}
|
|
}
|
|
|
|
.clock-btn {
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.media-btn {
|
|
padding: 0 12px;
|
|
|
|
.media-art {
|
|
border-radius: 4px;
|
|
-gtk-icon-size: $icon-size;
|
|
}
|
|
}
|
|
|
|
.system-tray {
|
|
background: transparent;
|
|
border-radius: $btn-radius;
|
|
padding: 0;
|
|
margin: 0;
|
|
|
|
.tray-item {
|
|
padding: 0;
|
|
min-width: $btn-height;
|
|
min-height: $btn-height;
|
|
margin: 0 2px;
|
|
background: transparent;
|
|
|
|
button {
|
|
background: transparent;
|
|
}
|
|
|
|
&:hover {
|
|
background: rgba(wal.$foreground, 0.1);
|
|
border-radius: $btn-radius;
|
|
}
|
|
|
|
image {
|
|
-gtk-icon-size: 20px;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Icon-only control buttons (wallpaper, settings, power, etc)
|
|
.control-btn,
|
|
.wallpaper-btn,
|
|
.power-btn {
|
|
min-width: $btn-height;
|
|
padding: 0; // Square buttons should have 0 padding, width handles size
|
|
image {
|
|
-gtk-icon-size: $icon-size;
|
|
}
|
|
}
|
|
|
|
.controls-container {
|
|
.power-btn {
|
|
color: wal.$color1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.wallpaper-btn {
|
|
background: transparent;
|
|
|
|
picture {
|
|
border-radius: $btn-radius;
|
|
}
|
|
}
|
|
|
|
popover > contents {
|
|
background: $bg-color;
|
|
color: $fg-color;
|
|
border: 1px solid rgba(wal.$foreground, 0.1);
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
window.PowerMenu {
|
|
background: transparent;
|
|
|
|
.power-menu-container {
|
|
background: $bg-color;
|
|
border-radius: 16px;
|
|
padding: 32px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
|
|
|
|
.power-menu-btn {
|
|
padding: 24px;
|
|
border-radius: 12px;
|
|
background: transparent;
|
|
min-width: 120px;
|
|
transition: all 0.2s ease-in-out;
|
|
border: none;
|
|
box-shadow: none;
|
|
|
|
&:hover {
|
|
background: rgba(wal.$foreground, 0.1);
|
|
}
|
|
|
|
.power-menu-icon {
|
|
-gtk-icon-size: 48px;
|
|
}
|
|
|
|
.power-menu-label {
|
|
font-size: 1.2em;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.quick-settings-menu {
|
|
padding: 12px;
|
|
min-width: 280px;
|
|
|
|
.qs-title {
|
|
font-weight: bold;
|
|
font-size: 1.1em;
|
|
margin-bottom: 4px;
|
|
color: wal.$foreground;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.qs-item {
|
|
background: rgba(150, 150, 150, 0.1);
|
|
border-radius: 8px;
|
|
padding: 8px 12px;
|
|
|
|
.qs-icon {
|
|
-gtk-icon-size: 20px;
|
|
}
|
|
|
|
.qs-icon-btn {
|
|
background: transparent;
|
|
border: none;
|
|
box-shadow: none;
|
|
padding: 4px;
|
|
border-radius: 100%;
|
|
transition: all 0.2s ease-in-out;
|
|
|
|
&:hover {
|
|
background: rgba(wal.$foreground, 0.1);
|
|
}
|
|
}
|
|
}
|
|
|
|
slider {
|
|
transition: all 0.2s ease-in-out;
|
|
}
|
|
}
|