1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 00:35:18 +03:00

New icon theme added

This commit is contained in:
Kjell Kernen 2014-02-12 13:22:46 +01:00
parent fab041ce16
commit 4ca9aba433
4 changed files with 186 additions and 5 deletions

View file

@ -981,5 +981,177 @@
<file>themes/monowhite/48/contributors.png</file> <file>themes/monowhite/48/contributors.png</file>
<file>themes/monowhite/48/stop.png</file> <file>themes/monowhite/48/stop.png</file>
<file>themes/monowhite/48/write_eeprom.png</file> <file>themes/monowhite/48/write_eeprom.png</file>
<file>themes/new/16/paintbrush.png</file>
<file>themes/new/16/open.png</file>
<file>themes/new/16/edit.png</file>
<file>themes/new/16/information.png</file>
<file>themes/new/16/configure.png</file>
<file>themes/new/16/list.png</file>
<file>themes/new/16/wizard.png</file>
<file>themes/new/16/logs.png</file>
<file>themes/new/16/new.png</file>
<file>themes/new/16/save.png</file>
<file>themes/new/16/recentdocument.png</file>
<file>themes/new/16/simulate.png</file>
<file>themes/new/16/changelog.png</file>
<file>themes/new/16/copy.png</file>
<file>themes/new/16/write_flash.png</file>
<file>themes/new/16/read_eeprom_file.png</file>
<file>themes/new/16/clear.png</file>
<file>themes/new/16/play.png</file>
<file>themes/new/16/fuses.png</file>
<file>themes/new/16/arrow-right.png</file>
<file>themes/new/16/exit.png</file>
<file>themes/new/16/moveup.png</file>
<file>themes/new/16/read_eeprom.png</file>
<file>themes/new/16/cut.png</file>
<file>themes/new/16/arrow-left.png</file>
<file>themes/new/16/write_eeprom_file.png</file>
<file>themes/new/16/library.png</file>
<file>themes/new/16/profiles.png</file>
<file>themes/new/16/paste.png</file>
<file>themes/new/16/print.png</file>
<file>themes/new/16/compare.png</file>
<file>themes/new/16/saveas.png</file>
<file>themes/new/16/apppreferences.png</file>
<file>themes/new/16/fwpreferences.png</file>
<file>themes/new/16/movedown.png</file>
<file>themes/new/16/currentmodel.png</file>
<file>themes/new/16/read_flash.png</file>
<file>themes/new/16/duplicate.png</file>
<file>themes/new/16/add.png</file>
<file>themes/new/16/update.png</file>
<file>themes/new/16/contributors.png</file>
<file>themes/new/16/stop.png</file>
<file>themes/new/16/write_eeprom.png</file>
<file>themes/new/24/paintbrush.png</file>
<file>themes/new/24/open.png</file>
<file>themes/new/24/edit.png</file>
<file>themes/new/24/information.png</file>
<file>themes/new/24/configure.png</file>
<file>themes/new/24/list.png</file>
<file>themes/new/24/wizard.png</file>
<file>themes/new/24/logs.png</file>
<file>themes/new/24/new.png</file>
<file>themes/new/24/save.png</file>
<file>themes/new/24/recentdocument.png</file>
<file>themes/new/24/simulate.png</file>
<file>themes/new/24/changelog.png</file>
<file>themes/new/24/copy.png</file>
<file>themes/new/24/write_flash.png</file>
<file>themes/new/24/read_eeprom_file.png</file>
<file>themes/new/24/clear.png</file>
<file>themes/new/24/play.png</file>
<file>themes/new/24/fuses.png</file>
<file>themes/new/24/arrow-right.png</file>
<file>themes/new/24/exit.png</file>
<file>themes/new/24/moveup.png</file>
<file>themes/new/24/read_eeprom.png</file>
<file>themes/new/24/cut.png</file>
<file>themes/new/24/arrow-left.png</file>
<file>themes/new/24/write_eeprom_file.png</file>
<file>themes/new/24/library.png</file>
<file>themes/new/24/profiles.png</file>
<file>themes/new/24/paste.png</file>
<file>themes/new/24/print.png</file>
<file>themes/new/24/compare.png</file>
<file>themes/new/24/saveas.png</file>
<file>themes/new/24/apppreferences.png</file>
<file>themes/new/24/fwpreferences.png</file>
<file>themes/new/24/movedown.png</file>
<file>themes/new/24/currentmodel.png</file>
<file>themes/new/24/read_flash.png</file>
<file>themes/new/24/duplicate.png</file>
<file>themes/new/24/add.png</file>
<file>themes/new/24/update.png</file>
<file>themes/new/24/contributors.png</file>
<file>themes/new/24/stop.png</file>
<file>themes/new/24/write_eeprom.png</file>
<file>themes/new/32/paintbrush.png</file>
<file>themes/new/32/open.png</file>
<file>themes/new/32/edit.png</file>
<file>themes/new/32/information.png</file>
<file>themes/new/32/configure.png</file>
<file>themes/new/32/list.png</file>
<file>themes/new/32/wizard.png</file>
<file>themes/new/32/logs.png</file>
<file>themes/new/32/new.png</file>
<file>themes/new/32/save.png</file>
<file>themes/new/32/recentdocument.png</file>
<file>themes/new/32/simulate.png</file>
<file>themes/new/32/changelog.png</file>
<file>themes/new/32/copy.png</file>
<file>themes/new/32/write_flash.png</file>
<file>themes/new/32/read_eeprom_file.png</file>
<file>themes/new/32/clear.png</file>
<file>themes/new/32/play.png</file>
<file>themes/new/32/fuses.png</file>
<file>themes/new/32/arrow-right.png</file>
<file>themes/new/32/exit.png</file>
<file>themes/new/32/moveup.png</file>
<file>themes/new/32/read_eeprom.png</file>
<file>themes/new/32/cut.png</file>
<file>themes/new/32/arrow-left.png</file>
<file>themes/new/32/write_eeprom_file.png</file>
<file>themes/new/32/library.png</file>
<file>themes/new/32/profiles.png</file>
<file>themes/new/32/paste.png</file>
<file>themes/new/32/print.png</file>
<file>themes/new/32/compare.png</file>
<file>themes/new/32/saveas.png</file>
<file>themes/new/32/apppreferences.png</file>
<file>themes/new/32/fwpreferences.png</file>
<file>themes/new/32/movedown.png</file>
<file>themes/new/32/currentmodel.png</file>
<file>themes/new/32/read_flash.png</file>
<file>themes/new/32/duplicate.png</file>
<file>themes/new/32/add.png</file>
<file>themes/new/32/update.png</file>
<file>themes/new/32/contributors.png</file>
<file>themes/new/32/stop.png</file>
<file>themes/new/32/write_eeprom.png</file>
<file>themes/new/48/paintbrush.png</file>
<file>themes/new/48/open.png</file>
<file>themes/new/48/edit.png</file>
<file>themes/new/48/information.png</file>
<file>themes/new/48/configure.png</file>
<file>themes/new/48/list.png</file>
<file>themes/new/48/wizard.png</file>
<file>themes/new/48/logs.png</file>
<file>themes/new/48/new.png</file>
<file>themes/new/48/save.png</file>
<file>themes/new/48/recentdocument.png</file>
<file>themes/new/48/simulate.png</file>
<file>themes/new/48/changelog.png</file>
<file>themes/new/48/copy.png</file>
<file>themes/new/48/write_flash.png</file>
<file>themes/new/48/read_eeprom_file.png</file>
<file>themes/new/48/clear.png</file>
<file>themes/new/48/play.png</file>
<file>themes/new/48/fuses.png</file>
<file>themes/new/48/arrow-right.png</file>
<file>themes/new/48/exit.png</file>
<file>themes/new/48/moveup.png</file>
<file>themes/new/48/read_eeprom.png</file>
<file>themes/new/48/cut.png</file>
<file>themes/new/48/arrow-left.png</file>
<file>themes/new/48/write_eeprom_file.png</file>
<file>themes/new/48/library.png</file>
<file>themes/new/48/profiles.png</file>
<file>themes/new/48/paste.png</file>
<file>themes/new/48/print.png</file>
<file>themes/new/48/compare.png</file>
<file>themes/new/48/saveas.png</file>
<file>themes/new/48/apppreferences.png</file>
<file>themes/new/48/fwpreferences.png</file>
<file>themes/new/48/movedown.png</file>
<file>themes/new/48/currentmodel.png</file>
<file>themes/new/48/read_flash.png</file>
<file>themes/new/48/duplicate.png</file>
<file>themes/new/48/add.png</file>
<file>themes/new/48/update.png</file>
<file>themes/new/48/contributors.png</file>
<file>themes/new/48/stop.png</file>
<file>themes/new/48/write_eeprom.png</file>
</qresource> </qresource>
</RCC> </RCC>

View file

@ -924,10 +924,13 @@ QString getTheme()
Theme="monowhite"; Theme="monowhite";
break; break;
case 3: case 3:
Theme="monochrome";
break;
case 4:
Theme="monoblue"; Theme="monoblue";
break; break;
default: default:
Theme="monochrome"; Theme="new";
break; break;
} }
return Theme; return Theme;

View file

@ -1776,9 +1776,12 @@ void MainWindow::createActions()
createProfileAct->setStatusTip(tr("Create a new Radio Setting Profile")); createProfileAct->setStatusTip(tr("Create a new Radio Setting Profile"));
connect(createProfileAct, SIGNAL(triggered()), this, SLOT(createProfile())); connect(createProfileAct, SIGNAL(triggered()), this, SLOT(createProfile()));
classicThemeAct = new QAction(tr("Classic"), this); classicThemeAct = new QAction(tr("Classical"), this);
classicThemeAct->setStatusTip(tr("The multicolor classical Companion icon theme")); classicThemeAct->setStatusTip(tr("The classical Companion icon theme"));
connect(classicThemeAct, SIGNAL(triggered()), this, SLOT(setClassicTheme())); connect(classicThemeAct, SIGNAL(triggered()), this, SLOT(setClassicTheme()));
newThemeAct = new QAction(tr("New"), this);
newThemeAct->setStatusTip(tr("The Companion 2.0 colored icon theme"));
connect(newThemeAct, SIGNAL(triggered()), this, SLOT(setNewTheme()));
monoThemeAct = new QAction("Monochrome",this); monoThemeAct = new QAction("Monochrome",this);
monoThemeAct->setStatusTip(tr("A monochrome black icon theme")); monoThemeAct->setStatusTip(tr("A monochrome black icon theme"));
connect(monoThemeAct, SIGNAL(triggered()), this, SLOT(setMonochromeTheme())); connect(monoThemeAct, SIGNAL(triggered()), this, SLOT(setMonochromeTheme()));
@ -1903,6 +1906,7 @@ void MainWindow::createMenus()
languageMenu->addAction(russianLanguageAct); languageMenu->addAction(russianLanguageAct);
settingsMenu->addMenu(themeMenu); settingsMenu->addMenu(themeMenu);
themeMenu->addAction(classicThemeAct); themeMenu->addAction(classicThemeAct);
themeMenu->addAction(newThemeAct);
themeMenu->addAction(monoThemeAct); themeMenu->addAction(monoThemeAct);
themeMenu->addAction(monoBlueThemeAct); themeMenu->addAction(monoBlueThemeAct);
themeMenu->addAction(monoWhiteThemeAct); themeMenu->addAction(monoWhiteThemeAct);

View file

@ -98,9 +98,10 @@ private slots:
void setTheme(int index); void setTheme(int index);
void setClassicTheme() {setTheme(0);}; void setClassicTheme() {setTheme(0);};
void setMonochromeTheme(){setTheme(1);}; void setNewTheme() {setTheme(1);};
void setMonoWhiteTheme() {setTheme(2);}; void setMonoWhiteTheme() {setTheme(2);};
void setMonoBlueTheme() {setTheme(3);}; void setMonochromeTheme(){setTheme(3);};
void setMonoBlueTheme() {setTheme(4);};
void setIconThemeSize(int index); void setIconThemeSize(int index);
void setSmallIconThemeSize() {setIconThemeSize(0);}; void setSmallIconThemeSize() {setIconThemeSize(0);};
@ -251,6 +252,7 @@ private:
QAction *profileActs[MAX_PROFILES]; QAction *profileActs[MAX_PROFILES];
QAction *createProfileAct; QAction *createProfileAct;
QAction *classicThemeAct; QAction *classicThemeAct;
QAction *newThemeAct;
QAction *monoThemeAct; QAction *monoThemeAct;
QAction *monoBlueThemeAct; QAction *monoBlueThemeAct;
QAction *monoWhiteThemeAct; QAction *monoWhiteThemeAct;