Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37779790
en ru br
Репозитории ALT

Группа :: Графические оболочки/KDE
Пакет: kde5-plasma-applet-places-widget

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: alt-inpanel-size.patch
Скачать


--- a/package/contents/ui/main.qml
+++ b/package/contents/ui/main.qml
@@ -15,6 +15,7 @@
  * along with this program.  If not, see <http: //www.gnu.org/licenses/>.
  */
 import QtQuick 2.2
+import QtQuick.Layouts 1.1
 import org.kde.plasma.plasmoid 2.0
 import org.kde.plasma.core 2.0 as PlasmaCore
 
@@ -24,12 +25,20 @@ Item {
     property bool showTimeline: plasmoid.configuration.showTimeline
     property bool showSearches: plasmoid.configuration.showSearches
     property int widgetWidth: Math.max(units.iconSizes.medium, theme.defaultFont.pixelSize + theme.smallestFont.pixelSize + units.smallSpacing) * 10
+    readonly property bool inPanel: (plasmoid.location === PlasmaCore.Types.TopEdge
+        || plasmoid.location === PlasmaCore.Types.RightEdge
+        || plasmoid.location === PlasmaCore.Types.BottomEdge
+        || plasmoid.location === PlasmaCore.Types.LeftEdge)
 
     Plasmoid.compactRepresentation: PlasmaCore.IconItem {
         source: 'folder-favorites'
         width: units.iconSizes.medium
         height: units.iconSizes.medium
         active: mouseArea.containsMouse
+        Layout.minimumWidth: units.iconSizes.small
+        Layout.maximumWidth: inPanel ? units.iconSizeHints.panel : -1
+        Layout.minimumHeight: units.iconSizes.small
+        Layout.maximumHeight: inPanel ? units.iconSizeHints.panel : -1
 
         MouseArea {
             id: mouseArea
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin