Malte Veerman 6 年之前
父节点
当前提交
f2cb6878c5
共有 3 个文件被更改,包括 2 次插入2 次删除
  1. 0 1
      plasmoid/CMakeLists.txt
  2. 1 1
      plasmoid/package/contents/config/config.qml
  3. 1 0
      plasmoid/package/contents/ui/main.qml

+ 0 - 1
plasmoid/CMakeLists.txt

@@ -1,6 +1,5 @@
 find_package(KF5Plasma REQUIRED)
 find_package(KF5Plasma REQUIRED)
 
 
 ecm_find_qmlmodule(org.kde.plasma.core 2.0)
 ecm_find_qmlmodule(org.kde.plasma.core 2.0)
-ecm_find_qmlmodule(org.kde.plasma.components 2.0)
 
 
 plasma_install_package(package org.kde.fancontrol.plasmoid)
 plasma_install_package(package org.kde.fancontrol.plasmoid)

+ 1 - 1
plasmoid/package/contents/config/config.qml

@@ -25,7 +25,7 @@ import org.kde.plasma.configuration 2.0
 ConfigModel {
 ConfigModel {
     ConfigCategory {
     ConfigCategory {
         name: i18n("General")
         name: i18n("General")
-        icon: "preferences-desktop-color"
+        icon: "org.kde.fancontrol.gui"
         source: "configGeneral.qml"
         source: "configGeneral.qml"
     }
     }
 }
 }

+ 1 - 0
plasmoid/package/contents/ui/main.qml

@@ -33,6 +33,7 @@ ColumnLayout {
 
 
     Layout.minimumWidth: Plasmoid.formFactor == PlasmaCore.Types.Horizontal ? height : header.implicitWidth
     Layout.minimumWidth: Plasmoid.formFactor == PlasmaCore.Types.Horizontal ? height : header.implicitWidth
     Layout.minimumHeight: Plasmoid.formFactor == PlasmaCore.Types.Vertical ? width  : header.implicitHeight + Kirigami.Units.gridUnit * 5
     Layout.minimumHeight: Plasmoid.formFactor == PlasmaCore.Types.Vertical ? width  : header.implicitHeight + Kirigami.Units.gridUnit * 5
+    Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
     Plasmoid.associatedApplication: "fancontrol_gui"
     Plasmoid.associatedApplication: "fancontrol_gui"
     Plasmoid.icon: "org.kde.fancontrol.gui"
     Plasmoid.icon: "org.kde.fancontrol.gui"
     Kirigami.Theme.backgroundColor: PlasmaCore.ColorScope.backgroundColor
     Kirigami.Theme.backgroundColor: PlasmaCore.ColorScope.backgroundColor