dark style
@@ -1,7 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>cMainWindow</class>
|
||||
<widget class="QMainWindow" name="cMainWindow" >
|
||||
<property name="geometry" >
|
||||
<widget class="QMainWindow" name="cMainWindow">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
@@ -9,16 +10,43 @@
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<property name="windowTitle">
|
||||
<string>cMainWindow</string>
|
||||
</property>
|
||||
<widget class="QMenuBar" name="menuBar" />
|
||||
<widget class="QToolBar" name="mainToolBar" />
|
||||
<widget class="QWidget" name="centralWidget" />
|
||||
<widget class="QStatusBar" name="statusBar" />
|
||||
<widget class="QWidget" name="centralWidget"/>
|
||||
<widget class="QMenuBar" name="menuBar">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menu_File">
|
||||
<property name="title">
|
||||
<string>&File</string>
|
||||
</property>
|
||||
<addaction name="actionE_xit"/>
|
||||
</widget>
|
||||
<addaction name="menu_File"/>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="mainToolBar">
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusBar"/>
|
||||
<action name="actionE_xit">
|
||||
<property name="text">
|
||||
<string>E&xit</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutDefault spacing="6" margin="11" />
|
||||
<pixmapfunction></pixmapfunction>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
||||
@@ -1,11 +1,28 @@
|
||||
#include "cmainwindow.h"
|
||||
#include <QApplication>
|
||||
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
|
||||
QFile f(":qdarkstyle/style.qss");
|
||||
if (!f.exists())
|
||||
{
|
||||
printf("Unable to set stylesheet, file not found\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
f.open(QFile::ReadOnly | QFile::Text);
|
||||
QTextStream ts(&f);
|
||||
a.setStyleSheet(ts.readAll());
|
||||
}
|
||||
|
||||
cMainWindow w;
|
||||
w.show();
|
||||
w.showMaximized();
|
||||
|
||||
return a.exec();
|
||||
}
|
||||
|
||||
@@ -66,4 +66,48 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||
DISTFILES += \
|
||||
README.md \
|
||||
LICENSE \
|
||||
Doxyfile
|
||||
Doxyfile \
|
||||
qdarkstyle/rc/branch_closed-on.png \
|
||||
qdarkstyle/rc/branch_closed.png \
|
||||
qdarkstyle/rc/branch_open-on.png \
|
||||
qdarkstyle/rc/branch_open.png \
|
||||
qdarkstyle/rc/checkbox_checked.png \
|
||||
qdarkstyle/rc/checkbox_checked_disabled.png \
|
||||
qdarkstyle/rc/checkbox_checked_focus.png \
|
||||
qdarkstyle/rc/checkbox_indeterminate.png \
|
||||
qdarkstyle/rc/checkbox_indeterminate_disabled.png \
|
||||
qdarkstyle/rc/checkbox_indeterminate_focus.png \
|
||||
qdarkstyle/rc/checkbox_unchecked.png \
|
||||
qdarkstyle/rc/checkbox_unchecked_disabled.png \
|
||||
qdarkstyle/rc/checkbox_unchecked_focus.png \
|
||||
qdarkstyle/rc/close-hover.png \
|
||||
qdarkstyle/rc/close-pressed.png \
|
||||
qdarkstyle/rc/close.png \
|
||||
qdarkstyle/rc/down_arrow.png \
|
||||
qdarkstyle/rc/down_arrow_disabled.png \
|
||||
qdarkstyle/rc/Hmovetoolbar.png \
|
||||
qdarkstyle/rc/Hsepartoolbar.png \
|
||||
qdarkstyle/rc/left_arrow.png \
|
||||
qdarkstyle/rc/left_arrow_disabled.png \
|
||||
qdarkstyle/rc/radio_checked.png \
|
||||
qdarkstyle/rc/radio_checked_disabled.png \
|
||||
qdarkstyle/rc/radio_checked_focus.png \
|
||||
qdarkstyle/rc/radio_unchecked.png \
|
||||
qdarkstyle/rc/radio_unchecked_disabled.png \
|
||||
qdarkstyle/rc/radio_unchecked_focus.png \
|
||||
qdarkstyle/rc/right_arrow.png \
|
||||
qdarkstyle/rc/right_arrow_disabled.png \
|
||||
qdarkstyle/rc/sizegrip.png \
|
||||
qdarkstyle/rc/stylesheet-branch-end.png \
|
||||
qdarkstyle/rc/stylesheet-branch-more.png \
|
||||
qdarkstyle/rc/stylesheet-vline.png \
|
||||
qdarkstyle/rc/transparent.png \
|
||||
qdarkstyle/rc/undock.png \
|
||||
qdarkstyle/rc/up_arrow.png \
|
||||
qdarkstyle/rc/up_arrow_disabled.png \
|
||||
qdarkstyle/rc/Vmovetoolbar.png \
|
||||
qdarkstyle/rc/Vsepartoolbar.png \
|
||||
qdarkstyle/style.qss
|
||||
|
||||
RESOURCES += \
|
||||
qdarkstyle/style.qrc
|
||||
|
||||
|
After Width: | Height: | Size: 220 B |
|
After Width: | Height: | Size: 172 B |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 147 B |
|
After Width: | Height: | Size: 160 B |
|
After Width: | Height: | Size: 150 B |
|
After Width: | Height: | Size: 166 B |
|
After Width: | Height: | Size: 492 B |
|
After Width: | Height: | Size: 491 B |
|
After Width: | Height: | Size: 252 B |
|
After Width: | Height: | Size: 493 B |
|
After Width: | Height: | Size: 492 B |
|
After Width: | Height: | Size: 249 B |
|
After Width: | Height: | Size: 464 B |
|
After Width: | Height: | Size: 464 B |
|
After Width: | Height: | Size: 240 B |
|
After Width: | Height: | Size: 598 B |
|
After Width: | Height: | Size: 598 B |
|
After Width: | Height: | Size: 586 B |
|
After Width: | Height: | Size: 165 B |
|
After Width: | Height: | Size: 166 B |
|
After Width: | Height: | Size: 166 B |
|
After Width: | Height: | Size: 166 B |
|
After Width: | Height: | Size: 940 B |
|
After Width: | Height: | Size: 972 B |
|
After Width: | Height: | Size: 846 B |
|
After Width: | Height: | Size: 728 B |
|
After Width: | Height: | Size: 760 B |
|
After Width: | Height: | Size: 646 B |
|
After Width: | Height: | Size: 160 B |
|
After Width: | Height: | Size: 160 B |
|
After Width: | Height: | Size: 129 B |
|
After Width: | Height: | Size: 224 B |
|
After Width: | Height: | Size: 182 B |
|
After Width: | Height: | Size: 239 B |
|
After Width: | Height: | Size: 195 B |
|
After Width: | Height: | Size: 578 B |
|
After Width: | Height: | Size: 158 B |
|
After Width: | Height: | Size: 159 B |
@@ -0,0 +1,46 @@
|
||||
<RCC>
|
||||
<qresource prefix="qss_icons">
|
||||
<file>rc/up_arrow_disabled.png</file>
|
||||
<file>rc/Hmovetoolbar.png</file>
|
||||
<file>rc/stylesheet-branch-end.png</file>
|
||||
<file>rc/branch_closed-on.png</file>
|
||||
<file>rc/stylesheet-vline.png</file>
|
||||
<file>rc/branch_closed.png</file>
|
||||
<file>rc/branch_open-on.png</file>
|
||||
<file>rc/transparent.png</file>
|
||||
<file>rc/right_arrow_disabled.png</file>
|
||||
<file>rc/sizegrip.png</file>
|
||||
<file>rc/close.png</file>
|
||||
<file>rc/close-hover.png</file>
|
||||
<file>rc/close-pressed.png</file>
|
||||
<file>rc/down_arrow.png</file>
|
||||
<file>rc/Vmovetoolbar.png</file>
|
||||
<file>rc/left_arrow.png</file>
|
||||
<file>rc/stylesheet-branch-more.png</file>
|
||||
<file>rc/up_arrow.png</file>
|
||||
<file>rc/right_arrow.png</file>
|
||||
<file>rc/left_arrow_disabled.png</file>
|
||||
<file>rc/Hsepartoolbar.png</file>
|
||||
<file>rc/branch_open.png</file>
|
||||
<file>rc/Vsepartoolbar.png</file>
|
||||
<file>rc/down_arrow_disabled.png</file>
|
||||
<file>rc/undock.png</file>
|
||||
<file>rc/checkbox_checked_disabled.png</file>
|
||||
<file>rc/checkbox_checked_focus.png</file>
|
||||
<file>rc/checkbox_checked.png</file>
|
||||
<file>rc/checkbox_indeterminate.png</file>
|
||||
<file>rc/checkbox_indeterminate_focus.png</file>
|
||||
<file>rc/checkbox_unchecked_disabled.png</file>
|
||||
<file>rc/checkbox_unchecked_focus.png</file>
|
||||
<file>rc/checkbox_unchecked.png</file>
|
||||
<file>rc/radio_checked_disabled.png</file>
|
||||
<file>rc/radio_checked_focus.png</file>
|
||||
<file>rc/radio_checked.png</file>
|
||||
<file>rc/radio_unchecked_disabled.png</file>
|
||||
<file>rc/radio_unchecked_focus.png</file>
|
||||
<file>rc/radio_unchecked.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="qdarkstyle">
|
||||
<file>style.qss</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||