1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Added icons to mod action buttons

This commit is contained in:
Ivan Savenko 2023-01-28 01:04:41 +02:00
parent 3da50e83be
commit 8439477751
2 changed files with 54 additions and 4 deletions

View File

@ -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);

View File

@ -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>