This repository has been archived by the owner on Jun 16, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce tray item, that lets you toggle floating mode
- Loading branch information
Mikhail Zolotukhin
committed
Nov 1, 2021
1 parent
8ebffbe
commit ba689c5
Showing
4 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// SPDX-FileCopyrightText: 2021 Mikhail Zolotukhin <mail@genda.life> | ||
// | ||
// SPDX-License-Identifier: MIT | ||
|
||
import QtQuick 2.0 | ||
|
||
import Qt.labs.platform 1.1 as Labs | ||
|
||
Labs.SystemTrayIcon { | ||
id: root | ||
visible: true | ||
icon.name: "bismuth" | ||
tooltip: "Windows' Tiling" | ||
|
||
menu: Labs.Menu { | ||
id: menu | ||
visible: false // Prevent from showing on Script Loading | ||
|
||
property var onToggleTiling: () => {} | ||
|
||
Labs.MenuItem { | ||
text: i18n("Toggle Tiling") | ||
icon.name: "window" | ||
onTriggered: () => menu.onToggleTiling() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters