aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core')
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/StatusTray.qml1
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/status_tray/BatteryButton.qml2
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/status_tray/TrayIcon.qml1
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/status_tray/VolumeButton.qml16
4 files changed, 16 insertions, 4 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/StatusTray.qml b/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/StatusTray.qml
index 8f2239b9..254ffff2 100644
--- a/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/StatusTray.qml
+++ b/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/StatusTray.qml
@@ -27,7 +27,6 @@ Rectangle {
//Volume Status
QML.VolumeButton{
- id: "volButton"
Layout.preferredHeight: status_tray.prefsize
Layout.preferredWidth: status_tray.prefsize
}
diff --git a/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/status_tray/BatteryButton.qml b/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/status_tray/BatteryButton.qml
index 8ceec2d4..38ed6a64 100644
--- a/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/status_tray/BatteryButton.qml
+++ b/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/status_tray/BatteryButton.qml
@@ -13,7 +13,7 @@ import Lumina.Backend.OSInterface 2.0
ToolButton{
property OSInterface os: RootObject.os_interface()
id: "batButton"
- iconName: os.icon
+ iconName: os.batteryIcon
tooltip: os.batteryCharge+"%: "+os.batteryRemaining
visible: os.batteryAvailable()
enabled: false
diff --git a/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/status_tray/TrayIcon.qml b/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/status_tray/TrayIcon.qml
index 4207b156..8b8367b0 100644
--- a/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/status_tray/TrayIcon.qml
+++ b/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/status_tray/TrayIcon.qml
@@ -6,6 +6,7 @@
//===========================================
import QtQuick 2.2
import QtQuick.Controls 2
+
import Lumina.Backend.NativeWindowObject 2.0
Rectangle{
diff --git a/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/status_tray/VolumeButton.qml b/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/status_tray/VolumeButton.qml
index 43992fc4..e98a2603 100644
--- a/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/status_tray/VolumeButton.qml
+++ b/src-qt5/core/lumina-desktop-unified/src-desktop/src-qml/plugins/status_tray/VolumeButton.qml
@@ -7,7 +7,19 @@
import QtQuick 2.2
import QtQuick.Controls 1
+import Lumina.Backend.RootDesktopObject 2.0
+import Lumina.Backend.OSInterface 2.0
+
ToolButton{
- text: "volume"
- tooltip: "volume"
+ property OSInterface os: RootObject.os_interface()
+ id: "volButton"
+ iconName: os.volumeIcon
+ tooltip: os.volume+"%"
+ visible: os.volumeSupported()
+ enabled: os.hasAudioMixer()
+ //Simple launch of mixer at the moment - make this popup a menu later
+ onClicked: {
+ RootObject.launchApplication( os.audioMixerShortcut() )
+ }
+
}
bgstack15