mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 04:03:24 +00:00
Cleanup the prettyness of subsurface on Gtk+ style.
Fix some stuff concerning the pretyness of subsurface while running on Gnome and XFCE enviroments. This is the kind of stuff that I really didn`t want to put on the code but sometimes it`s for the best. this makes the MainTab much more bearable. There are still things to fix, like the size and positioning of some of the icons. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
d6f2988bcf
commit
8f94b904dd
3 changed files with 21 additions and 23 deletions
|
@ -95,6 +95,7 @@ void init_ui(int *argcp, char ***argvp)
|
||||||
|
|
||||||
// the Gtk theme makes things unbearably ugly
|
// the Gtk theme makes things unbearably ugly
|
||||||
// so switch to Oxygen in this case
|
// so switch to Oxygen in this case
|
||||||
|
qDebug() << application->style()->objectName();
|
||||||
if (application->style()->objectName() == "gtk+")
|
if (application->style()->objectName() == "gtk+")
|
||||||
application->setStyle("Oxygen");
|
application->setStyle("Oxygen");
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,9 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
setDocumentMode(false);
|
setDocumentMode(false);
|
||||||
#else
|
#else
|
||||||
|
if (qApp->style()->objectName() == "gtk+")
|
||||||
|
setDocumentMode(false);
|
||||||
|
else
|
||||||
setDocumentMode(true);
|
setDocumentMode(true);
|
||||||
#endif
|
#endif
|
||||||
// we start out with the fields read-only; once things are
|
// we start out with the fields read-only; once things are
|
||||||
|
|
|
@ -26,10 +26,16 @@
|
||||||
</property>
|
</property>
|
||||||
<widget class="QStackedWidget" name="infoPane">
|
<widget class="QStackedWidget" name="infoPane">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="page">
|
<widget class="QWidget" name="page">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="margin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="MainTab" name="InfoWidget" native="true"/>
|
<widget class="MainTab" name="InfoWidget" native="true"/>
|
||||||
</item>
|
</item>
|
||||||
|
@ -37,6 +43,12 @@
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="page_2">
|
<widget class="QWidget" name="page_2">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="margin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="DivePlannerWidget" name="widget" native="true"/>
|
<widget class="DivePlannerWidget" name="widget" native="true"/>
|
||||||
</item>
|
</item>
|
||||||
|
@ -52,16 +64,7 @@
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="leftMargin">
|
<property name="margin">
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin">
|
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
|
@ -74,16 +77,7 @@
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="leftMargin">
|
<property name="margin">
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin">
|
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
|
@ -169,7 +163,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>763</width>
|
<width>763</width>
|
||||||
<height>19</height>
|
<height>23</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuFile">
|
<widget class="QMenu" name="menuFile">
|
||||||
|
|
Loading…
Add table
Reference in a new issue