refactor: move styles to seperate folder

This commit is contained in:
tux
2025-09-24 21:57:45 +05:30
parent ae3bc364be
commit e09d781605
8 changed files with 27 additions and 22 deletions

2
app.ts
View File

@@ -1,6 +1,6 @@
import app from "ags/gtk4/app";
import GLib from "gi://GLib";
import style from "./style.scss";
import style from "./style/main.scss";
import windows from "./windows";
const icons = `${GLib.get_user_config_dir()}/tpanel/assets/icons`;

View File

@@ -1,20 +0,0 @@
$accent: #54cdb3;
$fg-color: #fff;
$bg-color: #0e0e0e;
$inactive-color: #252525;
$rounded: 8px;
$font-size: 1rem;
* {
all: unset;
font-family: FiraCode Nerd Font Bold;
}
// bar
@import "./widgets/bar/style.scss";
// launcher
@import "./widgets/launcher/style.scss";
// notifications
@import "./widgets/notifications/style.scss";

View File

@@ -1,3 +1,4 @@
@use "./_variable.scss" as *;
@use "sass:math";
@use "sass:list";

4
style/_base.scss Normal file
View File

@@ -0,0 +1,4 @@
* {
all: unset;
font-family: FiraCode Nerd Font Bold;
}

View File

@@ -1,3 +1,5 @@
@use "./_variable.scss" as *;
window.launcher {
background: $bg-color;
border-radius: $rounded;

View File

@@ -1,3 +1,4 @@
@use "./_variable.scss" as *;
@use "sass:math";
@use "sass:list";
@@ -15,7 +16,7 @@ window.notifications {
border: 1px solid rgba(red, 0.5);
}
&.low {
&.normal {
border: 1px solid rgba(yellow, 0.5);
}

6
style/_variable.scss Normal file
View File

@@ -0,0 +1,6 @@
$accent: #54cdb3;
$fg-color: #fff;
$bg-color: #0e0e0e;
$inactive-color: #252525;
$rounded: 8px;
$font-size: 1rem;

11
style/main.scss Normal file
View File

@@ -0,0 +1,11 @@
// base
@use "./_base.scss";
// bar
@use "./_bar.scss";
// launcher
@use "./_launcher.scss";
// notifications
@use "./_notification.scss";