Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dtk
dtk-widgets
Commits
1820ec37
Commit
1820ec37
authored
May 28, 2020
by
NICLAUSSE Nicolas
Browse files
apply theme in workspaceBar and raise font size
parent
1701d61d
Changes
2
Show whitespace changes
Inline
Side-by-side
src/dtkWidgets/dtkWidgetsWorkspaceBar.cpp
View file @
1820ec37
...
@@ -116,6 +116,12 @@ void dtkWidgetsWorkspaceBarPrivate::createWorkspace(const QColor& color, const Q
...
@@ -116,6 +116,12 @@ void dtkWidgetsWorkspaceBarPrivate::createWorkspace(const QColor& color, const Q
q
->
setTabText
(
index
,
name
);
q
->
setTabText
(
index
,
name
);
q
->
setTabTextColor
(
index
,
color
.
isValid
()
?
color
:
dtkThemesEngine
::
instance
()
->
color
(
"@fg"
));
q
->
setTabTextColor
(
index
,
color
.
isValid
()
?
color
:
dtkThemesEngine
::
instance
()
->
color
(
"@fg"
));
connect
(
dtkThemesEngine
::
instance
(),
&
dtkThemesEngine
::
changed
,
[
=
]
()
{
q
->
setTabTextColor
(
index
,
color
.
isValid
()
?
color
:
dtkThemesEngine
::
instance
()
->
color
(
"@fg"
));
});
this
->
workspace_map
.
insert
(
index
,
workspace
);
this
->
workspace_map
.
insert
(
index
,
workspace
);
q
->
repaint
();
q
->
repaint
();
...
...
src/dtkWidgets/dtkWidgetsWorkspaceBar.qml
View file @
1820ec37
...
@@ -57,6 +57,8 @@ Rectangle {
...
@@ -57,6 +57,8 @@ Rectangle {
color
:
theme
.
value
(
"
@fg
"
);
color
:
theme
.
value
(
"
@fg
"
);
font.pointSize
:
12
;
Image
{
Image
{
anchors.verticalCenter
:
parent
.
verticalCenter
;
anchors.verticalCenter
:
parent
.
verticalCenter
;
anchors.right
:
parent
.
right
;
anchors.right
:
parent
.
right
;
...
@@ -79,7 +81,7 @@ Rectangle {
...
@@ -79,7 +81,7 @@ Rectangle {
text
:
description
;
text
:
description
;
font.pointSize
:
9
;
font.pointSize
:
12
;
wrapMode
:
TextEdit
.
WordWrap
;
wrapMode
:
TextEdit
.
WordWrap
;
}
}
...
@@ -150,6 +152,8 @@ Rectangle {
...
@@ -150,6 +152,8 @@ Rectangle {
color
:
theme
.
value
(
"
@fg
"
);
color
:
theme
.
value
(
"
@fg
"
);
text
:
"
Choose package
"
;
text
:
"
Choose package
"
;
font.pointSize
:
12
;
}
}
Image
{
Image
{
...
...
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