[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kscreen/sebas/osd] kded/qml: Somewhere, we do need to set the size...
From: Sebastian_Kügler <sebas () kde ! org>
Date: 2016-12-05 22:40:52
Message-ID: E1cE1wK-00034I-2J () code ! kde ! org
[Download RAW message or body]
Git commit 886825e1b216e9321bd73493aa4e605062c958fe by Sebastian K=C3=BCgle=
r.
Committed on 05/12/2016 at 15:08.
Pushed by sebas into branch 'sebas/osd'.
Somewhere, we do need to set the size...
This is in line with Plasma's default look and feel
M +3 -0 kded/qml/OsdItem.qml
https://commits.kde.org/kscreen/886825e1b216e9321bd73493aa4e605062c958fe
diff --git a/kded/qml/OsdItem.qml b/kded/qml/OsdItem.qml
index 5f9d673..6c3a532 100644
--- a/kded/qml/OsdItem.qml
+++ b/kded/qml/OsdItem.qml
@@ -25,6 +25,9 @@ import org.kde.plasma.extras 2.0 as PlasmaExtra
Item {
property QtObject rootItem
=
+ height: Math.min(units.gridUnit * 15, Screen.desktopAvailableHeight / =
5)
+ width: height
+
PlasmaCore.IconItem {
id: icon
height: parent.height - label.height - ((units.smallSpacing/2) * 3)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic