parent
5c94aeb86a
commit
d02d82c7e1
11 changed files with 256 additions and 14 deletions
nixosModules/ags/config/widgets/on-screen-keyboard
|
@ -1,7 +1,7 @@
|
|||
import { bind, idle, Variable } from 'astal';
|
||||
import { Astal, astalify, Gtk, type ConstructProps, Widget } from 'astal/gtk3';
|
||||
import { register } from 'astal/gobject';
|
||||
import { Astal, Gtk, Widget } from 'astal/gtk3';
|
||||
|
||||
import { ToggleButton } from '../misc/subclasses';
|
||||
import Separator from '../misc/separator';
|
||||
|
||||
import Arc from './arcs';
|
||||
|
@ -13,17 +13,6 @@ import { defaultOskLayout, oskLayouts } from './keyboard-layouts';
|
|||
const keyboardLayout = defaultOskLayout;
|
||||
const keyboardJson = oskLayouts[keyboardLayout];
|
||||
|
||||
@register()
|
||||
class ToggleButton extends astalify(Gtk.ToggleButton) {
|
||||
constructor(props: ConstructProps<
|
||||
ToggleButton,
|
||||
Gtk.ToggleButton.ConstructorProps
|
||||
>) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
super(props as any);
|
||||
}
|
||||
}
|
||||
|
||||
const L_KEY_PER_ROW = [8, 7, 6, 6, 6, 4];
|
||||
const SPACING = 4;
|
||||
const COLOR = 'rgba(0, 0, 0, 0.5)';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue