Themable, HighDpi Android/iOS device icons

Also used as option category icons

Change-Id: I40916ff4683554a3e7de7126d737286eba4a525f
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Alessandro Portale
2016-09-16 18:12:52 +02:00
parent de41e85c3b
commit ee6b19cb39
19 changed files with 178 additions and 7 deletions

View File

@@ -1,6 +1,9 @@
<RCC>
<qresource prefix="/android">
<file>images/QtAndroid.png</file>
<file>images/androiddevice.png</file>
<file>images/androiddevice@2x.png</file>
<file>images/androiddevicesmall.png</file>
<file>images/androiddevicesmall@2x.png</file>
<file>images/download.png</file>
<file>Android.mimetypes.xml</file>
</qresource>

View File

@@ -48,7 +48,6 @@ enum AndroidQemuStatus {
namespace Constants {
const char ANDROID_SETTINGS_ID[] = "BB.Android Configurations";
const char ANDROID_SETTINGS_CATEGORY_ICON[] = ":/android/images/QtAndroid.png";
const char ANDROID_TOOLCHAIN_ID[] = "Qt4ProjectManager.ToolChain.Android";
const char ANDROIDQT[] = "Qt4ProjectManager.QtVersion.Android";

View File

@@ -45,7 +45,10 @@ AndroidDevice::AndroidDevice()
{
setDisplayName(QCoreApplication::translate("Android::Internal::AndroidDevice", "Run on Android"));
setDeviceState(DeviceReadyToUse);
setDeviceIcon({Utils::Icon(":/android/images/QtAndroid.png")});
setDeviceIcon({Utils::Icon({{":/android/images/androiddevicesmall.png",
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint),
Utils::Icon({{":/android/images/androiddevice.png",
Utils::Theme::IconsBaseColor}})});
}
AndroidDevice::AndroidDevice(const AndroidDevice &other)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B