mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-28 14:07:47 -04:00
notifications: no selection ring on modal open clipboard: match the notification header and add a settings butto
settings/interface: explicit window radius match option cc: restore dim in edit mode fixes #3623
This commit is contained in:
1 parent
f025a8d7b4
commit
5cfda4ebe7
9 files changed
+132
-63
No files matched your search
@@ -8,9 +8,11 @@ Item {
|
||||
id: root
|
||||
|
||||
property var keyboardController: null
|
||||
property var historyView: null
|
||||
property int currentTab: 0
|
||||
property var transientSurfaceTracker: null
|
||||
property bool modal: false
|
||||
readonly property var hintsOwner: currentTab === 1 && historyView ? historyView : keyboardController
|
||||
readonly property string currentLabel: {
|
||||
const count = NotificationService.notifications.length;
|
||||
if (count === 0)
|
||||
@@ -75,11 +77,15 @@ Item {
|
||||
}
|
||||
|
||||
DankActionButton {
|
||||
visible: root.keyboardController !== null
|
||||
readonly property bool hintsShown: root.hintsOwner?.showKeyboardHints ?? false
|
||||
|
||||
visible: root.hintsOwner !== null
|
||||
iconName: "info"
|
||||
buttonSize: Theme.buttonHeightXS
|
||||
backgroundColor: hintsShown ? Theme.secondaryContainer : "transparent"
|
||||
iconColor: hintsShown ? Theme.onSecondaryContainer : Theme.onSurfaceVariant
|
||||
tooltipText: I18n.tr("Keyboard shortcuts")
|
||||
onClicked: root.keyboardController.showKeyboardHints = !root.keyboardController.showKeyboardHints
|
||||
onClicked: root.hintsOwner.showKeyboardHints = !hintsShown
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user