- DarkLineEdit: wrapper around std LineEdit with Dracula theme (dark bg, purple focus border) - Replaced all remaining std LineEdit in: tab_keymap, tab_macros, tab_flasher, key_selector - Layer sidebar: wrapped in Flickable for scrolling with many layers - Zero std-widgets visual components remaining (except LineEdit inside DarkLineEdit wrapper) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
23 lines
684 B
Text
23 lines
684 B
Text
import { LineEdit } from "std-widgets.slint";
|
|
import { Theme } from "../theme.slint";
|
|
|
|
export component DarkLineEdit inherits Rectangle {
|
|
in property <string> placeholder-text: "";
|
|
in-out property <string> text: "";
|
|
callback accepted(string);
|
|
callback edited(string);
|
|
|
|
forward-focus: inner;
|
|
height: 28px;
|
|
border-radius: 4px;
|
|
border-width: 1px;
|
|
border-color: inner.has-focus ? Theme.accent-purple : Theme.button-border;
|
|
background: Theme.button-bg;
|
|
|
|
inner := LineEdit {
|
|
text <=> root.text;
|
|
placeholder-text: root.placeholder-text;
|
|
accepted(t) => { root.accepted(t); }
|
|
edited(t) => { root.edited(t); }
|
|
}
|
|
}
|