mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-08 23:02:05 -04:00
qml: cut down on inline components for performance
This commit is contained in:
17
quickshell/Modals/WindowRuleInputField.qml
Normal file
17
quickshell/Modals/WindowRuleInputField.qml
Normal file
@@ -0,0 +1,17 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
|
||||
Rectangle {
|
||||
id: inputFieldRect
|
||||
|
||||
default property alias contentData: inputFieldRect.data
|
||||
property bool hasFocus: false
|
||||
property int fieldHeight: Theme.fontSizeMedium + Theme.spacingL * 2
|
||||
|
||||
width: parent.width
|
||||
height: fieldHeight
|
||||
radius: Theme.cornerRadius
|
||||
color: Theme.surfaceHover
|
||||
border.color: hasFocus ? Theme.primary : Theme.outlineStrong
|
||||
border.width: hasFocus ? 2 : 1
|
||||
}
|
||||
Reference in New Issue
Block a user