mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-10 07:25:37 -05:00
scalable topbar
This commit is contained in:
@@ -10,11 +10,13 @@ Item {
|
||||
property string section: "left"
|
||||
property var popupTarget: null
|
||||
property var parentScreen: null
|
||||
property real widgetHeight: 30
|
||||
property real barHeight: 48
|
||||
|
||||
signal clicked
|
||||
|
||||
width: 40
|
||||
height: 30
|
||||
height: widgetHeight
|
||||
|
||||
MouseArea {
|
||||
id: launcherArea
|
||||
@@ -30,7 +32,7 @@ Item {
|
||||
var screenX = currentScreen.x || 0
|
||||
var relativeX = globalPos.x - screenX
|
||||
popupTarget.setTriggerPosition(
|
||||
relativeX, Theme.barHeight + Theme.spacingXS,
|
||||
relativeX, barHeight + Theme.spacingXS,
|
||||
width, section, currentScreen)
|
||||
}
|
||||
root.clicked()
|
||||
|
||||
Reference in New Issue
Block a user