From 61d1c72c07d5f478ffe81714241ba66bb05331ff Mon Sep 17 00:00:00 2001 From: Pascal Thuma Date: Tue, 24 Mar 2026 20:04:35 +0100 Subject: [PATCH] Added power and settings button --- style.scss | 15 +++++++++++++++ widget/Bar.tsx | 9 ++++++++- widget/Controls.tsx | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 widget/Controls.tsx diff --git a/style.scss b/style.scss index e5f7d3e..e92e9e3 100644 --- a/style.scss +++ b/style.scss @@ -73,4 +73,19 @@ window.Bar { } } } + + .controls-container { + .control-btn { + padding: 2px 8px; + min-height: 24px; + + image { + -gtk-icon-size: 16px; + } + } + + .power-btn { + color: #ff5555; // Distinctive color for power button + } + } } diff --git a/widget/Bar.tsx b/widget/Bar.tsx index 0c823a5..9934f3e 100644 --- a/widget/Bar.tsx +++ b/widget/Bar.tsx @@ -3,6 +3,7 @@ import { Astal, Gtk, Gdk } from "ags/gtk4" import Workspaces from "./Workspaces" import { Clock, SysTray } from "./System" import Media from "./Media" +import Controls from "./Controls" function Left() { return ( @@ -28,8 +29,14 @@ function Center() { function Right() { return ( - + + ) } diff --git a/widget/Controls.tsx b/widget/Controls.tsx new file mode 100644 index 0000000..26df74c --- /dev/null +++ b/widget/Controls.tsx @@ -0,0 +1,32 @@ +import { Gtk } from "ags/gtk4" + +export function SettingsButton() { + return ( + + ) +} + +export function PowerButton() { + return ( + + ) +} + +export default function Controls() { + return ( + + + + + ) +}