Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refact: using QuickItem's palette instead of SystemPalette #199

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions qml/FolderGridViewPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,13 @@ Popup {
Layout.preferredHeight: 5
}

SystemPalette { id: folderTextPalette }
TextInput {
Layout.fillWidth: true
clip: true
font: folderNameFont
horizontalAlignment: Text.AlignHCenter
text: folderLoader.folderName
color: palette.text
color: palette.windowText
onEditingFinished: {
ItemArrangementProxyModel.updateFolderName(folderLoader.currentFolderId, text);
}
Expand Down
3 changes: 1 addition & 2 deletions qml/GridViewContainer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,13 @@ FocusScope {
cellWidth: item.cellWidth

highlight: Item {
SystemPalette { id: highlightPalette }
FocusBoxBorder {
anchors {
fill: parent
margins: 5
}
radius: isWindowedMode ? 8 : 18
color: highlightPalette.highlight
color: palette.highlight
visible: gridView.activeFocus
}
}
Expand Down
3 changes: 1 addition & 2 deletions qml/windowed/AlphabetCategoryPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,12 @@ Popup {
paddingRows: root.paddingRows

highlight: Item {
SystemPalette { id: highlightPalette }
FocusBoxBorder {
anchors.centerIn: parent
width: root.cellWidth
height: root.cellHeight
radius: root.cellWidth / 2
color: highlightPalette.highlight
color: palette.highlight
visible: alphabetCategoryContainer.activeFocus
}
}
Expand Down
3 changes: 1 addition & 2 deletions qml/windowed/AppListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,13 @@ Item {
section.labelPositioning: ViewSection.InlineLabels // | ViewSection.CurrentLabelAtStart

highlight: Item {
SystemPalette { id: highlightPalette }
FocusBoxBorder {
anchors {
fill: parent
margins: 4
}
radius: 4
color: highlightPalette.highlight
color: palette.highlight
visible: listView.activeFocus
}
}
Expand Down
3 changes: 1 addition & 2 deletions qml/windowed/FreeSortListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@ Item {

clip: true
highlight: Item {
SystemPalette { id: highlightPalette }
FocusBoxBorder {
anchors {
fill: parent
margins: 4
}
radius: 4
color: highlightPalette.highlight
color: palette.highlight
visible: listView.activeFocus
}
}
Expand Down
3 changes: 1 addition & 2 deletions qml/windowed/GridViewContainer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,13 @@ FocusScope {
cellWidth: root.cellWidth + paddingColumns

highlight: Item {
SystemPalette { id: highlightPalette }
FocusBoxBorder {
anchors {
fill: parent
margins: 5
}
radius: 8
color: highlightPalette.highlight
color: palette.highlight
visible: gridView.activeFocus
}
}
Expand Down
Loading