Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Johannes Zarl-Zierl
KPhotoAlbum
Commits
04a3d5e8
Commit
04a3d5e8
authored
May 09, 2020
by
Johannes Zarl-Zierl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow application stylesheet to be overridden.
parent
aad2bfd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
main.cpp
main.cpp
+2
-1
No files found.
main.cpp
View file @
04a3d5e8
...
...
@@ -133,7 +133,8 @@ int main(int argc, char **argv)
const
QString
schemePath
=
KSharedConfig
::
openConfig
()
->
group
(
"General"
).
readEntry
(
QString
::
fromLatin1
(
"colorScheme"
),
QString
());
qCDebug
(
MainLog
)
<<
"Loading color scheme from "
<<
(
schemePath
.
isEmpty
()
?
QString
::
fromLatin1
(
"system default"
)
:
schemePath
);
app
.
setPalette
(
KColorScheme
::
createApplicationPalette
(
KSharedConfig
::
openConfig
(
schemePath
)));
app
.
setStyleSheet
(
STYLE
);
if
(
app
.
styleSheet
().
isEmpty
())
app
.
setStyleSheet
(
STYLE
);
new
MainWindow
::
SplashScreen
();
...
...
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