From 7b48cb848711c042e2088d3f5c278b4dae7fd711 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Mon, 4 Nov 2024 21:42:25 -0500 Subject: [PATCH] chore(agsV2): fix deprecation warnings for scss --- nixosModules/ags-v2/config/app.ts | 8 ++++++++ nixosModules/ags-v2/config/widgets/bar/_index.scss | 7 ++++--- nixosModules/ags-v2/config/widgets/bar/wim.tsx | 2 +- nixosModules/ags-v2/config/widgets/date/_index.scss | 2 +- nixosModules/ags-v2/config/widgets/misc/_index.scss | 2 +- nixosModules/ags-v2/config/widgets/notifs/_index.scss | 5 +++-- nixosModules/ags-v2/config/widgets/powermenu/_index.scss | 5 +++-- nixosModules/ags-v2/config/widgets/screenshot/_index.scss | 2 +- 8 files changed, 22 insertions(+), 11 deletions(-) diff --git a/nixosModules/ags-v2/config/app.ts b/nixosModules/ags-v2/config/app.ts index b3b184a2..fa27ad23 100644 --- a/nixosModules/ags-v2/config/app.ts +++ b/nixosModules/ags-v2/config/app.ts @@ -1,3 +1,11 @@ +// TODO: touch gestures +// TODO: persisting data like bluetooth +// TODO: quick-settings +// TODO: music player stuff +// TODO: on-screen-keyboard +// TODO: Greetd +// TODO: GSR + import GLib from 'gi://GLib'; diff --git a/nixosModules/ags-v2/config/widgets/bar/_index.scss b/nixosModules/ags-v2/config/widgets/bar/_index.scss index e2250903..0234b762 100644 --- a/nixosModules/ags-v2/config/widgets/bar/_index.scss +++ b/nixosModules/ags-v2/config/widgets/bar/_index.scss @@ -1,4 +1,5 @@ -@use '../../style/colors' as colors; +@use 'sass:color'; +@use '../../style/colors'; .bar { margin-left: 5px; @@ -8,14 +9,14 @@ .bar-item { padding: 5px 10px 5px 10px; border-radius: 7px; - background-color: darken(colors.$window_bg_color, 3%); + background-color: color.adjust(colors.$window_bg_color, $lightness: -3%); font-size: 20px; min-height: 35px; transition: background-color 300ms; &:hover { - background-color: lighten(colors.$window_bg_color, 3%); + background-color: color.adjust(colors.$window_bg_color, $lightness: 3%); } &.network icon { diff --git a/nixosModules/ags-v2/config/widgets/bar/wim.tsx b/nixosModules/ags-v2/config/widgets/bar/wim.tsx index 143e2f90..e7eff01e 100644 --- a/nixosModules/ags-v2/config/widgets/bar/wim.tsx +++ b/nixosModules/ags-v2/config/widgets/bar/wim.tsx @@ -14,7 +14,7 @@ import BarRevealer from './fullscreen'; import Separator from '../misc/separator'; -// TODO: add Bluetooth, Kbd Layout +// TODO: add Bluetooth export default () => (