💥 fix(ags): bar/media widget, new appearance to control center
This commit is contained in:
@@ -49,7 +49,7 @@ function LogoutButton(): Widget.Button {
|
||||
return new Widget.Button({
|
||||
label: "",
|
||||
onClick: () => Process.exec_async(
|
||||
"bash -c 'loginctl terminate-user $USER'",
|
||||
"bash -c 'wlogout -b 5'",
|
||||
() => {}
|
||||
)
|
||||
} as Widget.ButtonProps);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Binding } from "astal";
|
||||
import { Binding, Variable } from "astal";
|
||||
import { Gtk, Widget } from "astal/gtk3";
|
||||
|
||||
export interface NormalTileProps {
|
||||
@@ -14,9 +14,6 @@ export interface NormalTileProps {
|
||||
|
||||
export function MoreTile(props: NormalTileProps): Gtk.Widget {
|
||||
|
||||
let toggleState: boolean = props?.toggleState !== undefined ?
|
||||
props.toggleState : false;
|
||||
|
||||
const mainEventBox = new Widget.EventBox({
|
||||
onClick: () => toggleState ? props.onToggledOff() : props.onToggledOn(),
|
||||
expand: true,
|
||||
|
||||
Reference in New Issue
Block a user