Compare commits

..

No commits in common. "47013dd498508df8a0012c8102fd892327563a2d" and "ce236f87503bb4c9ce66cb0aad1d13739151a883" have entirely different histories.

5 changed files with 17 additions and 41 deletions

View file

@ -8,7 +8,6 @@ import { Heart } from './heart.js';
import { TabletToggle } from './tablet-toggle.js';
import { QsToggle } from './quick-settings.js';
import { NotifButton } from './notif-button.js';
import { Clock } from './clock.js';
export const Bar = Window({
name: 'left-bar',
@ -53,10 +52,6 @@ export const Bar = Window({
Box({
halign: 'end',
children: [
Clock,
Separator(12),
NotifButton,
Separator(12),

View file

@ -1,18 +0,0 @@
const { Box, Label } = ags.Widget;
const { execAsync } = ags.Utils;
const { DateTime } = imports.gi.GLib;
const ClockModule = ({
format = '%a. %e %b. %H:%M',
interval = 1000,
...props
}) => Label({
...props,
className: 'clock',
connections: [[interval, label => label.label = DateTime.new_now_local().format(format)]],
});
export const Clock = Box({
className: 'toggle-off',
child: ClockModule({}),
});

View file

@ -6,7 +6,6 @@ const { Gtk } = imports.gi;
const currentWindow = () => Label({
style: 'color: #CBA6F7; font-size: 18px',
truncate: 'end',
connections: [
[Hyprland, label => {
label.label = Hyprland.active.client.title;

View file

@ -22,6 +22,15 @@
}
}
.filler {
border-left: 2px solid $contrastbg;
border-right: 2px solid $contrastbg;
min-height: 14px;
min-width: 105px;
background-color: $bg;
transition: all 0.5s;
}
.quick-settings-toggle {
font-size: 24px;
min-height: 40px;
@ -53,12 +62,3 @@
transition: background-color 0.5s ease-in-out,
border 0.5s ease-in-out;
}
.clock {
font-size: 20px;
padding-left: 10px;
padding-right: 10px;
min-width: 230px;
border: 2px solid rgba(#382c4a, 0.8);
border-radius: 80px;
}

View file

@ -58,6 +58,14 @@
border-bottom-right-radius: 0px;
border-bottom: 0px solid rgba(40, 42, 54, 0.8); }
.filler {
border-left: 2px solid rgba(189, 147, 249, 0.8);
border-right: 2px solid rgba(189, 147, 249, 0.8);
min-height: 14px;
min-width: 105px;
background-color: rgba(40, 42, 54, 0.8);
transition: all 0.5s; }
.quick-settings-toggle {
font-size: 24px;
min-height: 40px;
@ -83,14 +91,6 @@
background-color: rgba(127, 132, 156, 0.4);
transition: background-color 0.5s ease-in-out, border 0.5s ease-in-out; }
.clock {
font-size: 20px;
padding-left: 10px;
padding-right: 10px;
min-width: 230px;
border: 2px solid rgba(56, 44, 74, 0.8);
border-radius: 80px; }
.workspaces {
background-color: rgba(40, 42, 54, 0.8);
border-radius: 80px;