home
This commit is contained in:
parent
a71a3b5593
commit
cb52890889
16657 changed files with 1483086 additions and 1 deletions
16
home/ags/lib/gtk.ts
Normal file
16
home/ags/lib/gtk.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import Gio from "gi://Gio"
|
||||
import options from "options"
|
||||
|
||||
const settings = new Gio.Settings({
|
||||
schema: "org.gnome.desktop.interface",
|
||||
})
|
||||
|
||||
function gtk() {
|
||||
const scheme = options.theme.scheme.value
|
||||
settings.set_string("color-scheme", `prefer-${scheme}`)
|
||||
}
|
||||
|
||||
export default function init() {
|
||||
options.theme.scheme.connect("changed", gtk)
|
||||
gtk()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue