mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
extra sizing conditions for sys tray
This commit is contained in:
parent
3c79cc5213
commit
d2149e0705
6 changed files with 147 additions and 73 deletions
|
|
@ -21,27 +21,38 @@ Item {
|
|||
hoverEnabled: true
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
if (root.popup.content == powerMenu) {
|
||||
root.popup.hide();
|
||||
return;
|
||||
}
|
||||
|
||||
root.popup.set(this, powerMenu);
|
||||
root.popup.show();
|
||||
}
|
||||
}
|
||||
|
||||
WrapperItem {
|
||||
Item {
|
||||
id: powerMenu
|
||||
visible: false
|
||||
implicitWidth: 250
|
||||
implicitHeight: 80
|
||||
|
||||
ColumnLayout {
|
||||
RowLayout {
|
||||
id: powerProfiles
|
||||
implicitWidth: 300
|
||||
implicitHeight: 60
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
console.log("why this work");
|
||||
powerMenu.implicitWidth = 300;
|
||||
}
|
||||
}
|
||||
|
||||
// place holder until I figured out what I want to do with material
|
||||
ComboBox {
|
||||
model: ["Power Save", "Balanced", "Performance"]
|
||||
currentIndex: PowerProfiles.profile
|
||||
onCurrentIndexChanged: PowerProfiles.profile = currentIndex
|
||||
}
|
||||
RowLayout {
|
||||
anchors.fill: parent
|
||||
|
||||
// placeholder for now
|
||||
ComboBox {
|
||||
model: ["Power Save", "Balanced", "Performance"]
|
||||
currentIndex: PowerProfiles.profile
|
||||
onCurrentIndexChanged: PowerProfiles.profile = currentIndex
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue