Moved theme selection in submenu

This commit is contained in:
xarkes 2017-10-24 10:03:05 +02:00
parent 18fe4375d4
commit 4c971ef8e8
2 changed files with 17 additions and 6 deletions

View File

@ -451,6 +451,7 @@ void MainWindow::readSettings()
void MainWindow::dark()
{
qApp->setStyleSheet("QPlainTextEdit { background-color: rgb(64, 64, 64); color: rgb(222, 222, 222);} QTextEdit { background-color: rgb(64, 64, 64); color: rgb(222, 222, 222);} ");
// Call Config() rather than QSettings
QSettings settings;
settings.setValue("dark", true);

View File

@ -174,7 +174,7 @@ border-top: 0px;
<x>0</x>
<y>0</y>
<width>1013</width>
<height>22</height>
<height>20</height>
</rect>
</property>
<property name="defaultUp">
@ -188,8 +188,8 @@ border-top: 0px;
<rect>
<x>419</x>
<y>265</y>
<width>173</width>
<height>206</height>
<width>148</width>
<height>190</height>
</rect>
</property>
<property name="title">
@ -220,6 +220,13 @@ border-top: 0px;
<property name="tabsOnTop" stdset="0">
<bool>false</bool>
</property>
<widget class="QMenu" name="menuTheme">
<property name="title">
<string>Theme</string>
</property>
<addaction name="actionWhite_Theme"/>
<addaction name="actionDark_Theme"/>
</widget>
<addaction name="actionRefresh_contents"/>
<addaction name="separator"/>
<addaction name="actionDefaut"/>
@ -228,10 +235,8 @@ border-top: 0px;
<addaction name="actionLock"/>
<addaction name="actionTabs_on_Top"/>
<addaction name="separator"/>
<addaction name="actionWhite_Theme"/>
<addaction name="actionDark_Theme"/>
<addaction name="separator"/>
<addaction name="actionAsmOptions"/>
<addaction name="menuTheme"/>
</widget>
<widget class="QMenu" name="menuHelp">
<property name="title">
@ -988,6 +993,11 @@ QToolButton .svg-icon path {
<string>Save As...</string>
</property>
</action>
<action name="actionTmp">
<property name="text">
<string>Tmp</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources>