Fix AppLauncher color & alignment
This commit is contained in:
parent
68ee123f00
commit
48d218b49e
1 changed files with 12 additions and 7 deletions
|
|
@ -288,26 +288,31 @@ NLoader {
|
||||||
1,
|
1,
|
||||||
searchInput.activeFocus ? Style.borderMedium * scaling : Style.borderThin * scaling)
|
searchInput.activeFocus ? Style.borderMedium * scaling : Style.borderThin * scaling)
|
||||||
|
|
||||||
Row {
|
Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: Style.marginMedium * scaling
|
anchors.margins: Style.marginMedium * scaling
|
||||||
spacing: Style.marginSmall * scaling
|
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
id: searchIcon
|
||||||
text: "search"
|
text: "search"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeLarger * scaling
|
font.pointSize: Style.fontSizeLarger * scaling
|
||||||
color: searchInput.activeFocus ? Color.mPrimary : Color.mOnSurface
|
color: searchInput.activeFocus ? Color.mPrimary : Color.mOnSurface
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField {
|
TextField {
|
||||||
id: searchInput
|
id: searchInput
|
||||||
placeholderText: "Search applications..."
|
placeholderText: searchText === "" ? "Search applications... (use > to view commands)" : "Search applications..."
|
||||||
color: Color.mOnSurface
|
color: Color.mOnSurface
|
||||||
placeholderTextColor: Color.mOnSurface
|
placeholderTextColor: Color.mOnSurfaceVariant
|
||||||
background: null
|
background: null
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
Layout.fillWidth: true
|
anchors.left: searchIcon.right
|
||||||
|
anchors.leftMargin: Style.marginSmall * scaling
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
searchText = text
|
searchText = text
|
||||||
selectedIndex = 0 // Reset selection when search changes
|
selectedIndex = 0 // Reset selection when search changes
|
||||||
|
|
@ -473,7 +478,7 @@ NLoader {
|
||||||
text: modelData.name || "Unknown"
|
text: modelData.name || "Unknown"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
color: Color.mOnSurface
|
color: (appCardArea.containsMouse || isSelected) ? Color.mOnPrimary : Color.mOnSurface
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -481,7 +486,7 @@ NLoader {
|
||||||
NText {
|
NText {
|
||||||
text: modelData.isCalculator ? (modelData.expr + " = " + modelData.result) : modelData.isClipboard ? modelData.content : modelData.isCommand ? modelData.content : (modelData.genericName || modelData.comment || "")
|
text: modelData.isCalculator ? (modelData.expr + " = " + modelData.result) : modelData.isClipboard ? modelData.content : modelData.isCommand ? modelData.content : (modelData.genericName || modelData.comment || "")
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
color: (appCardArea.containsMouse || isSelected) ? Color.mOnSurface : Color.mOnSurface
|
color: (appCardArea.containsMouse || isSelected) ? Color.mOnPrimary : Color.mOnSurface
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
visible: text !== ""
|
visible: text !== ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue