Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
18c9b4e6
Commit
18c9b4e6
authored
May 31, 2013
by
Bryant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further refinements to the dark/light themes. Focused mostly on the status bar at the bottom.
parent
b8becd3b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
8 deletions
+45
-8
style-dark.css
files/styles/style-dark.css
+14
-1
style-light.css
files/styles/style-light.css
+13
-1
QGCMAVLinkLogPlayer.cc
src/ui/QGCMAVLinkLogPlayer.cc
+11
-0
QGCMAVLinkLogPlayer.h
src/ui/QGCMAVLinkLogPlayer.h
+1
-0
UASView.cc
src/ui/uas/UASView.cc
+6
-6
No files found.
files/styles/style-dark.css
View file @
18c9b4e6
...
...
@@ -70,6 +70,18 @@ QDockWidget::title {
height
:
14px
;
}
QGCMAVLinkLogPlayer
{
background
:
none
;
}
QGCMAVLinkLogPlayer
QLabel
{
color
:
#FFF
;
}
QGCMAVLinkLogPlayer
QLabel
:disabled
{
color
:
#AAA
;
}
QGCToolBar
QLabel
{
font-size
:
10pt
;
margin
:
3px
2px
;
...
...
@@ -182,6 +194,7 @@ QMenu::item:selected, QMenu::item:checked:selected {
QMenu
::item:checked
{
background-color
:
#B8D3E6
;
color
:
#000
;
}
QMenu
::separator
{
...
...
@@ -329,7 +342,7 @@ QSlider::groove:horizontal {
QSlider
::groove:horizontal:disabled
{
border
:
1px
solid
#454545
;
background-color
:
#
CCC
;
background-color
:
#
4A4A4A
;
height
:
4px
;
/* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
margin
:
2px
0
;
}
...
...
files/styles/style-light.css
View file @
18c9b4e6
...
...
@@ -70,6 +70,18 @@ QDockWidget::title {
height
:
14px
;
}
QGCMAVLinkLogPlayer
{
background
:
none
;
}
QGCMAVLinkLogPlayer
QLabel
{
color
:
#FFF
;
}
QGCMAVLinkLogPlayer
QLabel
:disabled
{
color
:
#666
;
}
QGCToolBar
QLabel
{
font-size
:
10pt
;
margin
:
3px
2px
;
...
...
@@ -329,7 +341,7 @@ QSlider::groove:horizontal {
}
QSlider
::groove:horizontal:disabled
{
border
:
1px
solid
#
454545
;
border
:
1px
solid
#
999
;
background-color
:
#CCC
;
height
:
4px
;
/* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
margin
:
2px
0
;
...
...
src/ui/QGCMAVLinkLogPlayer.cc
View file @
18c9b4e6
...
...
@@ -561,3 +561,14 @@ void QGCMAVLinkLogPlayer::changeEvent(QEvent *e)
break
;
}
}
/**
* Implement paintEvent() so that stylesheets work for our custom widget.
*/
void
QGCMAVLinkLogPlayer
::
paintEvent
(
QPaintEvent
*
)
{
QStyleOption
opt
;
opt
.
init
(
this
);
QPainter
p
(
this
);
style
()
->
drawPrimitive
(
QStyle
::
PE_Widget
,
&
opt
,
&
p
,
this
);
}
\ No newline at end of file
src/ui/QGCMAVLinkLogPlayer.h
View file @
18c9b4e6
...
...
@@ -99,6 +99,7 @@ protected:
private:
Ui
::
QGCMAVLinkLogPlayer
*
ui
;
virtual
void
paintEvent
(
QPaintEvent
*
);
};
#endif // QGCMAVLINKLOGPLAYER_H
src/ui/uas/UASView.cc
View file @
18c9b4e6
...
...
@@ -722,9 +722,9 @@ void UASView::changeEvent(QEvent *e)
* Implement paintEvent() so that stylesheets work for our custom widget.
*/
void
UASView
::
paintEvent
(
QPaintEvent
*
)
{
QStyleOption
opt
;
opt
.
init
(
this
);
QPainter
p
(
this
);
style
()
->
drawPrimitive
(
QStyle
::
PE_Widget
,
&
opt
,
&
p
,
this
);
}
{
QStyleOption
opt
;
opt
.
init
(
this
);
QPainter
p
(
this
);
style
()
->
drawPrimitive
(
QStyle
::
PE_Widget
,
&
opt
,
&
p
,
this
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment