separate scss color vars for bar elements (1) (#327)

This commit is contained in:
end-4
2024-03-14 12:06:33 +07:00
parent ee7fdc9ab4
commit d3761d1d0d
7 changed files with 191 additions and 123 deletions
+4 -4
View File
@@ -30,21 +30,21 @@ const BatBatteryProgress = () => {
const BarClock = () => Widget.Box({
vpack: 'center',
className: 'spacing-h-4 txt-onSurfaceVariant bar-clock-box',
className: 'spacing-h-4 bar-clock-box',
children: [
Widget.Label({
className: 'bar-clock',
className: 'bar-time',
label: GLib.DateTime.new_now_local().format(userOptions.time.format),
setup: (self) => self.poll(userOptions.time.interval, label => {
label.label = GLib.DateTime.new_now_local().format(userOptions.time.format);
}),
}),
Widget.Label({
className: 'txt-norm',
className: 'txt-norm txt-onLayer1',
label: '•',
}),
Widget.Label({
className: 'txt-smallie',
className: 'txt-smallie bar-date',
label: GLib.DateTime.new_now_local().format(userOptions.time.dateFormatLong),
setup: (self) => self.poll(userOptions.time.dateInterval, (label) => {
label.label = GLib.DateTime.new_now_local().format(userOptions.time.dateFormatLong);