Browse Source

Added icons to mod action buttons

Ivan Savenko 2 years ago
parent
commit
8439477751
2 changed files with 54 additions and 4 deletions
  1. 2 2
      launcher/modManager/cmodlistview_moc.cpp
  2. 52 2
      launcher/modManager/cmodlistview_moc.ui

+ 2 - 2
launcher/modManager/cmodlistview_moc.cpp

@@ -71,11 +71,11 @@ void CModListView::setupModsView()
 	else //default //TODO: default high-DPI scaling
 	{
 		ui->allModsView->setColumnWidth(ModFields::NAME, 185);
-		ui->allModsView->setColumnWidth(ModFields::STATUS_ENABLED, 30);
-		ui->allModsView->setColumnWidth(ModFields::STATUS_UPDATE, 30);
 		ui->allModsView->setColumnWidth(ModFields::TYPE, 75);
 		ui->allModsView->setColumnWidth(ModFields::VERSION, 60);
 	}
+	ui->allModsView->setColumnWidth(ModFields::STATUS_ENABLED, 24);
+	ui->allModsView->setColumnWidth(ModFields::STATUS_UPDATE, 24);
 
 	ui->allModsView->setUniformRowHeights(true);
 

+ 52 - 2
launcher/modManager/cmodlistview_moc.ui

@@ -135,8 +135,8 @@
        </property>
        <property name="iconSize">
         <size>
-         <width>32</width>
-         <height>32</height>
+         <width>24</width>
+         <height>24</height>
         </size>
        </property>
        <property name="verticalScrollMode">
@@ -388,6 +388,16 @@ p, li { white-space: pre-wrap; }
        <property name="text">
         <string>Uninstall</string>
        </property>
+       <property name="icon">
+        <iconset>
+         <normaloff>icons:mod-delete.png</normaloff>icons:mod-delete.png</iconset>
+       </property>
+       <property name="iconSize">
+        <size>
+         <width>20</width>
+         <height>20</height>
+        </size>
+       </property>
       </widget>
      </item>
      <item>
@@ -413,6 +423,16 @@ p, li { white-space: pre-wrap; }
        <property name="text">
         <string>Enable</string>
        </property>
+       <property name="icon">
+        <iconset>
+         <normaloff>icons:mod-enabled.png</normaloff>icons:mod-enabled.png</iconset>
+       </property>
+       <property name="iconSize">
+        <size>
+         <width>20</width>
+         <height>20</height>
+        </size>
+       </property>
       </widget>
      </item>
      <item>
@@ -438,6 +458,16 @@ p, li { white-space: pre-wrap; }
        <property name="text">
         <string>Disable</string>
        </property>
+       <property name="icon">
+        <iconset>
+         <normaloff>icons:mod-disabled.png</normaloff>icons:mod-disabled.png</iconset>
+       </property>
+       <property name="iconSize">
+        <size>
+         <width>20</width>
+         <height>20</height>
+        </size>
+       </property>
       </widget>
      </item>
      <item>
@@ -463,6 +493,16 @@ p, li { white-space: pre-wrap; }
        <property name="text">
         <string>Update</string>
        </property>
+       <property name="icon">
+        <iconset>
+         <normaloff>icons:mod-update.png</normaloff>icons:mod-update.png</iconset>
+       </property>
+       <property name="iconSize">
+        <size>
+         <width>20</width>
+         <height>20</height>
+        </size>
+       </property>
       </widget>
      </item>
      <item>
@@ -488,6 +528,16 @@ p, li { white-space: pre-wrap; }
        <property name="text">
         <string>Install</string>
        </property>
+       <property name="icon">
+        <iconset>
+         <normaloff>icons:mod-download.png</normaloff>icons:mod-download.png</iconset>
+       </property>
+       <property name="iconSize">
+        <size>
+         <width>20</width>
+         <height>20</height>
+        </size>
+       </property>
       </widget>
      </item>
     </layout>