1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-17 20:58:07 +02:00

Add icons to start game tab, update button names

This commit is contained in:
Ivan Savenko 2024-12-04 16:44:50 +00:00
parent d34ad05c36
commit 009fe1836a
3 changed files with 40 additions and 4 deletions

View File

@ -206,7 +206,7 @@
</font>
</property>
<property name="text">
<string>Start game</string>
<string>Game</string>
</property>
<property name="iconSize">
<size>

View File

@ -15,6 +15,10 @@ StartGameTab::StartGameTab(QWidget * parent)
{
ui->setupUi(this);
ui->buttonGameResume->setIcon(QIcon{":/icons/menu-game.png"}); //TODO: different icon?
ui->buttonGameStart->setIcon(QIcon{":/icons/menu-game.png"});
ui->buttonGameEditor->setIcon(QIcon{":/icons/menu-editor.png"});
refreshState();
ui->buttonGameResume->setVisible(false); // TODO: implement

View File

@ -749,7 +749,7 @@
</spacer>
</item>
<item>
<widget class="QPushButton" name="buttonGameResume">
<widget class="QToolButton" name="buttonGameResume">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
@ -765,10 +765,19 @@
<property name="text">
<string>Resume</string>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonGameStart">
<widget class="QToolButton" name="buttonGameStart">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
@ -781,13 +790,27 @@
<height>100</height>
</size>
</property>
<property name="font">
<font>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Play</string>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonGameEditor">
<widget class="QToolButton" name="buttonGameEditor">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
@ -803,6 +826,15 @@
<property name="text">
<string>Editor</string>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
</widget>
</item>
<item>