addet activate linux on clicking the 'linux' icon
This commit is contained in:
parent
fd04b21188
commit
2a2b769aa9
3 changed files with 76 additions and 75 deletions
|
@ -2,6 +2,7 @@ import "root:/widgets"
|
|||
import "root:/services"
|
||||
import "root:/config"
|
||||
import "root:/modules/bar/popouts" as BarPopouts
|
||||
import "root:/modules/activation" as Activation
|
||||
import "components"
|
||||
import "components/workspaces"
|
||||
import Quickshell
|
||||
|
@ -13,6 +14,12 @@ Item {
|
|||
required property ShellScreen screen
|
||||
required property BarPopouts.Wrapper popouts
|
||||
|
||||
// Create an instance of the activation widget
|
||||
Activation.ActivationWidget {
|
||||
id: activationWidget
|
||||
screen: root.screen
|
||||
}
|
||||
|
||||
function checkPopout(y: real): void {
|
||||
const spacing = Appearance.spacing.small;
|
||||
const aw = activeWindow.child;
|
||||
|
@ -91,11 +98,7 @@ Item {
|
|||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
// Toggle the activation widget visibility
|
||||
const v = Visibilities.screens[QsWindow.window.screen];
|
||||
if (v) {
|
||||
v.isActivationWidgetVisible = !v.isActivationWidgetVisible;
|
||||
}
|
||||
activationWidget.toggle()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue