mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-20 13:46:06 +00:00
Optimize UI for dark system themes #89
This commit is contained in:
parent
b7808029a2
commit
2aabec9d05
@ -23,8 +23,7 @@
|
||||
<string notr="true">QHeaderView::section {
|
||||
padding: 3px;
|
||||
padding-left: 10px;
|
||||
background-color: rgb(232, 232, 232);
|
||||
border: 2px solid white;
|
||||
/* border: 2px solid white;*/
|
||||
}
|
||||
|
||||
QTabBar
|
||||
@ -33,8 +32,6 @@ QTabBar
|
||||
}
|
||||
|
||||
QTabBar::tab {
|
||||
background: rgb(240, 240, 240);
|
||||
border: 0px solid #2180a9;
|
||||
border-bottom-color: #2180a9;
|
||||
border-top-left-radius: 0px;
|
||||
border-top-right-radius: 0px;
|
||||
@ -55,7 +52,6 @@ QTabBar::tab:hover {
|
||||
}
|
||||
|
||||
QDockWidget::title {
|
||||
background: rgb(236, 236, 236);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@ -170,7 +166,7 @@ border-top: 0px;
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1013</width>
|
||||
<height>22</height>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="defaultUp">
|
||||
@ -184,8 +180,8 @@ border-top: 0px;
|
||||
<rect>
|
||||
<x>419</x>
|
||||
<y>265</y>
|
||||
<width>173</width>
|
||||
<height>206</height>
|
||||
<width>140</width>
|
||||
<height>239</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
@ -296,12 +292,14 @@ border-top: 0px;
|
||||
<string notr="true">QToolButton { /* all types of tool button */
|
||||
border: 0px solid rgb(255, 255, 255);
|
||||
border-radius: 6px;
|
||||
border-left: 5px solid rgb(255, 255, 255);
|
||||
border-right: 5px solid rgb(255, 255, 255);
|
||||
margin-bottom: 1px;
|
||||
margin-top: 1px;
|
||||
margin-left: 2px;
|
||||
margin-right: 2px;
|
||||
background-color: rgb(255, 255, 255);
|
||||
padding: 2px;
|
||||
padding-left: 7px;
|
||||
padding-right: 7px;
|
||||
color: rgb(255, 0, 0);
|
||||
}
|
||||
QToolButton .svg-icon path {
|
||||
|
@ -88,7 +88,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">border-top: 1px solid rgb(255, 255, 255);</string>
|
||||
<string notr="true">/*border-top: 1px solid rgb(255, 255, 255);*/</string>
|
||||
</property>
|
||||
<property name="frame">
|
||||
<bool>false</bool>
|
||||
@ -117,10 +117,12 @@ QToolButton { /* all types of tool button */
|
||||
border-radius: 6px;
|
||||
border-top: 2px solid rgb(255, 255, 255);
|
||||
border-bottom: 2px solid rgb(255, 255, 255);
|
||||
border-left: 8px solid rgb(255, 255, 255);
|
||||
border-right: 5px solid rgb(255, 255, 255);
|
||||
border-left: 2px solid rgb(255, 255, 255);
|
||||
border-right: 2px solid rgb(255, 255, 255);
|
||||
margin-bottom: 1px;
|
||||
margin-top: 1px;
|
||||
padding-left: 8px;
|
||||
padding-right: 5px;
|
||||
background-color: rgb(255, 255, 255);
|
||||
}</string>
|
||||
</property>
|
||||
|
@ -11,7 +11,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
||||
<string notr="true">background-color: palette(base);</string>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string notr="true">Dashboard</string>
|
||||
@ -56,7 +56,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1055</width>
|
||||
<height>980</height>
|
||||
<height>974</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||
|
@ -395,6 +395,7 @@ void PieView::paintEvent(QPaintEvent *event)
|
||||
//painter.drawEllipse(meowRect);
|
||||
QPoint p = pieRect.center();
|
||||
QPoint q(margin - 2, margin - 2);
|
||||
painter.setBrush(background);
|
||||
painter.drawEllipse(p -= q, pieSize / 4, pieSize / 4);
|
||||
|
||||
painter.restore();
|
||||
|
@ -16,7 +16,7 @@ SectionsWidget::SectionsWidget(MainWindow *main, QWidget *parent) :
|
||||
setupViews();
|
||||
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||
//setStyleSheet("QSplitter::handle:horizontal { width: 3px; } QSplitter::handle:vertical { height: 3px; }");
|
||||
setStyleSheet("QSplitter::handle { height: 2px; background-color: rgb(255, 255, 255); image: url(:/img/icons/tabs.svg); }");
|
||||
//setStyleSheet("QSplitter::handle { height: 2px; background-color: rgb(255, 255, 255); image: url(:/img/icons/tabs.svg); }");
|
||||
|
||||
connect(Core(), SIGNAL(refreshAll()), this, SLOT(refreshSections()));
|
||||
}
|
||||
|
@ -83,7 +83,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>333</width>
|
||||
<height>816</height>
|
||||
<height>810</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
@ -300,10 +300,6 @@
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(255, 255, 255);
|
||||
color: rgb(0, 0, 0);</string>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
|
Loading…
Reference in New Issue
Block a user