diff options
author | Matthew Woehlke <matthew.woehlke@kitware.com> | 2021-01-15 16:25:52 (GMT) |
---|---|---|
committer | Matthew Woehlke <matthew.woehlke@kitware.com> | 2021-01-15 16:43:29 (GMT) |
commit | 15e8072859e18e8a8016f263fb25daa650295672 (patch) | |
tree | 944d7aa99a8abebb46846b4676876f5f0b4d7d3b /Source/QtDialog | |
parent | 8aebd159fc2941b600b08535cf5ced805c185e87 (diff) | |
download | CMake-15e8072859e18e8a8016f263fb25daa650295672.zip CMake-15e8072859e18e8a8016f263fb25daa650295672.tar.gz CMake-15e8072859e18e8a8016f263fb25daa650295672.tar.bz2 |
CMake GUI: Use system icons when available
Modify GUI to use system (theme) icons when available. This may only
affect builds on Linux platforms when using the system-provided Qt, but
will improve visual consistency with e.g. okay/cancel buttons which are
also using the system/theme icons. This also means that the GUI will
look slightly more "native" on Linux.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.ui | 4 | ||||
-rw-r--r-- | Source/QtDialog/EnvironmentDialog.ui | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.ui b/Source/QtDialog/CMakeSetupDialog.ui index 25d1cbe..3c4bc13 100644 --- a/Source/QtDialog/CMakeSetupDialog.ui +++ b/Source/QtDialog/CMakeSetupDialog.ui @@ -216,7 +216,7 @@ <string>&Add Entry</string> </property> <property name="icon"> - <iconset resource="CMakeSetup.qrc"> + <iconset theme="list-add" resource="CMakeSetup.qrc"> <normaloff>:/Icons/Plus16.png</normaloff>:/Icons/Plus16.png</iconset> </property> </widget> @@ -230,7 +230,7 @@ <string>&Remove Entry</string> </property> <property name="icon"> - <iconset resource="CMakeSetup.qrc"> + <iconset theme="list-remove" resource="CMakeSetup.qrc"> <normaloff>:/Icons/Delete16.png</normaloff>:/Icons/Delete16.png</iconset> </property> </widget> diff --git a/Source/QtDialog/EnvironmentDialog.ui b/Source/QtDialog/EnvironmentDialog.ui index c0b5e9d..ed23c2c 100644 --- a/Source/QtDialog/EnvironmentDialog.ui +++ b/Source/QtDialog/EnvironmentDialog.ui @@ -51,7 +51,7 @@ <string>&Add Entry</string> </property> <property name="icon"> - <iconset resource="CMakeSetup.qrc"> + <iconset theme="list-add" resource="CMakeSetup.qrc"> <normaloff>:/Icons/Plus16.png</normaloff>:/Icons/Plus16.png</iconset> </property> </widget> @@ -62,7 +62,7 @@ <string>&Remove Entry</string> </property> <property name="icon"> - <iconset resource="CMakeSetup.qrc"> + <iconset theme="list-remove" resource="CMakeSetup.qrc"> <normaloff>:/Icons/Delete16.png</normaloff>:/Icons/Delete16.png</iconset> </property> </widget> |