Settings: added missing end divider to tabs
This commit is contained in:
parent
933dfc402b
commit
2b154e2cdb
4 changed files with 29 additions and 11 deletions
|
|
@ -414,4 +414,10 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
visible: Settings.data.nightLight.enabled
|
visible: Settings.data.nightLight.enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NDivider {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.topMargin: Style.marginXL * scaling
|
||||||
|
Layout.bottomMargin: Style.marginXL * scaling
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -180,4 +180,10 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NDivider {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.topMargin: Style.marginXL * scaling
|
||||||
|
Layout.bottomMargin: Style.marginXL * scaling
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -75,4 +75,10 @@ ColumnLayout {
|
||||||
onToggled: checked => Settings.data.location.useFahrenheit = checked
|
onToggled: checked => Settings.data.location.useFahrenheit = checked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NDivider {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.topMargin: Style.marginXL * scaling
|
||||||
|
Layout.bottomMargin: Style.marginXL * scaling
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,9 @@ Loader {
|
||||||
// Local queue for this screen only
|
// Local queue for this screen only
|
||||||
property var messageQueue: []
|
property var messageQueue: []
|
||||||
property bool isShowingToast: false
|
property bool isShowingToast: false
|
||||||
|
|
||||||
// If true, immediately show new toasts
|
// If true, immediately show new toasts
|
||||||
property bool replaceOnNew: true
|
property bool replaceOnNew: true
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: ScalingService
|
target: ScalingService
|
||||||
|
|
@ -47,15 +47,15 @@ Loader {
|
||||||
function enqueueToast(toastData) {
|
function enqueueToast(toastData) {
|
||||||
if (replaceOnNew && isShowingToast) {
|
if (replaceOnNew && isShowingToast) {
|
||||||
// Cancel current toast and clear queue for latest toast
|
// Cancel current toast and clear queue for latest toast
|
||||||
messageQueue = [] // Clear existing queue
|
messageQueue = [] // Clear existing queue
|
||||||
messageQueue.push(toastData)
|
messageQueue.push(toastData)
|
||||||
|
|
||||||
// Hide current toast immediately
|
// Hide current toast immediately
|
||||||
if (item) {
|
if (item) {
|
||||||
hideTimer.stop()
|
hideTimer.stop()
|
||||||
item.hideToast() // Need to add this method to PanelWindow
|
item.hideToast() // Need to add this method to PanelWindow
|
||||||
}
|
}
|
||||||
|
|
||||||
// Process new toast after a brief delay
|
// Process new toast after a brief delay
|
||||||
isShowingToast = false
|
isShowingToast = false
|
||||||
quickSwitchTimer.restart()
|
quickSwitchTimer.restart()
|
||||||
|
|
@ -65,10 +65,10 @@ Loader {
|
||||||
processQueue()
|
processQueue()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: quickSwitchTimer
|
id: quickSwitchTimer
|
||||||
interval: 50 // Brief delay for smooth transition
|
interval: 50 // Brief delay for smooth transition
|
||||||
onTriggered: root.processQueue()
|
onTriggered: root.processQueue()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -127,10 +127,10 @@ Loader {
|
||||||
function showToast(message, description, type, duration) {
|
function showToast(message, description, type, duration) {
|
||||||
toastItem.show(message, description, type, duration)
|
toastItem.show(message, description, type, duration)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add method to immediately hide toast
|
// Add method to immediately hide toast
|
||||||
function hideToast() {
|
function hideToast() {
|
||||||
toastItem.hideImmediately()
|
toastItem.hideImmediately()
|
||||||
}
|
}
|
||||||
|
|
||||||
SimpleToast {
|
SimpleToast {
|
||||||
|
|
@ -140,4 +140,4 @@ Loader {
|
||||||
onHidden: root.onToastHidden()
|
onHidden: root.onToastHidden()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue