mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16:10 +00:00
Moved theme selection in submenu
This commit is contained in:
parent
18fe4375d4
commit
4c971ef8e8
@ -451,6 +451,7 @@ void MainWindow::readSettings()
|
|||||||
void MainWindow::dark()
|
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);} ");
|
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;
|
QSettings settings;
|
||||||
settings.setValue("dark", true);
|
settings.setValue("dark", true);
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ border-top: 0px;
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1013</width>
|
<width>1013</width>
|
||||||
<height>22</height>
|
<height>20</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="defaultUp">
|
<property name="defaultUp">
|
||||||
@ -188,8 +188,8 @@ border-top: 0px;
|
|||||||
<rect>
|
<rect>
|
||||||
<x>419</x>
|
<x>419</x>
|
||||||
<y>265</y>
|
<y>265</y>
|
||||||
<width>173</width>
|
<width>148</width>
|
||||||
<height>206</height>
|
<height>190</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
@ -220,6 +220,13 @@ border-top: 0px;
|
|||||||
<property name="tabsOnTop" stdset="0">
|
<property name="tabsOnTop" stdset="0">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</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="actionRefresh_contents"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionDefaut"/>
|
<addaction name="actionDefaut"/>
|
||||||
@ -228,10 +235,8 @@ border-top: 0px;
|
|||||||
<addaction name="actionLock"/>
|
<addaction name="actionLock"/>
|
||||||
<addaction name="actionTabs_on_Top"/>
|
<addaction name="actionTabs_on_Top"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionWhite_Theme"/>
|
|
||||||
<addaction name="actionDark_Theme"/>
|
|
||||||
<addaction name="separator"/>
|
|
||||||
<addaction name="actionAsmOptions"/>
|
<addaction name="actionAsmOptions"/>
|
||||||
|
<addaction name="menuTheme"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menuHelp">
|
<widget class="QMenu" name="menuHelp">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
@ -988,6 +993,11 @@ QToolButton .svg-icon path {
|
|||||||
<string>Save As...</string>
|
<string>Save As...</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionTmp">
|
||||||
|
<property name="text">
|
||||||
|
<string>Tmp</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<resources>
|
<resources>
|
||||||
|
Loading…
Reference in New Issue
Block a user