mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-19 01:25:21 -04:00
feat(clipboard): add type filters to clipboard history (#2640)
* feat(clipboard): add active filter state * feat(clipboard): add clipboard filtering logic * feat(clipboard): wire clipboard filter state to UI * feat(clipboard): add filter dropdown * feat(clipboard): move filter dropdown beside search * refactor(clipboard): update filter defaults --------- Co-authored-by: purian23 <purian23@gmail.com>
This commit is contained in:
@@ -35,6 +35,7 @@ StyledRect {
|
||||
property color leftIconFocusedColor: Theme.primary
|
||||
property bool showClearButton: false
|
||||
property bool showPasswordToggle: false
|
||||
property real rightAccessoryWidth: 0
|
||||
property bool passwordVisible: false
|
||||
property bool usePopupTransparency: !checkParentDisablesTransparency()
|
||||
property color backgroundColor: usePopupTransparency ? Theme.withAlpha(Theme.surfaceContainerHigh, Theme.popupTransparency) : Theme.surfaceContainerHigh
|
||||
@@ -46,7 +47,7 @@ StyledRect {
|
||||
property real cornerRadius: Theme.cornerRadius
|
||||
readonly property real leftPadding: Theme.spacingM + (leftIconName ? leftIconSize + Theme.spacingM : 0)
|
||||
readonly property real rightPadding: {
|
||||
let p = Theme.spacingS;
|
||||
let p = Theme.spacingS + rightAccessoryWidth;
|
||||
if (showPasswordToggle)
|
||||
p += 20 + Theme.spacingXS;
|
||||
if (showClearButton && text.length > 0)
|
||||
|
||||
Reference in New Issue
Block a user