From 5991c8f994a31b6186d8442429cd5ef8446dcd3a Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 23 Jun 2025 01:34:44 +0200 Subject: [PATCH] add styled textinput --- .../modules/common/widgets/StyledTextInput.qml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .config/quickshell/modules/common/widgets/StyledTextInput.qml diff --git a/.config/quickshell/modules/common/widgets/StyledTextInput.qml b/.config/quickshell/modules/common/widgets/StyledTextInput.qml new file mode 100644 index 000000000..9ca242f19 --- /dev/null +++ b/.config/quickshell/modules/common/widgets/StyledTextInput.qml @@ -0,0 +1,17 @@ +import "root:/modules/common" +import QtQuick +import QtQuick.Controls + +/** + * Does not include visual layout, but includes the easily neglected colors. + */ +TextInput { + renderType: Text.NativeRendering + selectedTextColor: Appearance.m3colors.m3onSecondaryContainer + selectionColor: Appearance.colors.colSecondaryContainer + font { + family: Appearance?.font.family.main ?? "sans-serif" + pixelSize: Appearance?.font.pixelSize.small ?? 15 + hintingPreference: Font.PreferFullHinting + } +}