forked from Shinonome/dots-hyprland
add styled textinput
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user