How to make Okular follow the system theme?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












Since I upgraded to Ubuntu 18.04, Okular doesn't follow the Adwaita-dark or Arc themes when I set them with the Gnome tweak tool. Is there any way to fix this? All I really want is for Okular to use dark colors for its menus and toolbars.



Edit: When I try



GTK2_RC_FILES=Adwaita:dark okular


from the terminal, I get a bunch of errors like



(okular:16699): Gtk-WARNING **: 22:58:15.581: Theme parsing error: gtk.css:137:54: Using one color stop with linear-gradient() is deprecated.
(okular:16699): Gtk-WARNING **: 22:58:15.587: Theme parsing error: gtk.css:1839:9: Expected a string.
(okular:16699): Gtk-WARNING **: 22:58:15.590: Theme parsing error: gtk.css:2913:17: Using Pango syntax for the font: style property is deprecated; please use CSS syntax


I've also tried downloading systemsettings and kde-config-gtk-style and activating the themes there, with no response.







share|improve this question

















  • 2




    You may want to read something like wiki.archlinux.org/index.php/… because Okular is a qt application.
    – DK Bose
    Jun 7 at 3:34










  • @DKBose Thanks, I tried looking it over. I was at least able to get some errors at the terminal. It seems like the themes haven't adapted to the latest version of gtk.
    – axsd
    Jun 7 at 4:20














up vote
0
down vote

favorite












Since I upgraded to Ubuntu 18.04, Okular doesn't follow the Adwaita-dark or Arc themes when I set them with the Gnome tweak tool. Is there any way to fix this? All I really want is for Okular to use dark colors for its menus and toolbars.



Edit: When I try



GTK2_RC_FILES=Adwaita:dark okular


from the terminal, I get a bunch of errors like



(okular:16699): Gtk-WARNING **: 22:58:15.581: Theme parsing error: gtk.css:137:54: Using one color stop with linear-gradient() is deprecated.
(okular:16699): Gtk-WARNING **: 22:58:15.587: Theme parsing error: gtk.css:1839:9: Expected a string.
(okular:16699): Gtk-WARNING **: 22:58:15.590: Theme parsing error: gtk.css:2913:17: Using Pango syntax for the font: style property is deprecated; please use CSS syntax


I've also tried downloading systemsettings and kde-config-gtk-style and activating the themes there, with no response.







share|improve this question

















  • 2




    You may want to read something like wiki.archlinux.org/index.php/… because Okular is a qt application.
    – DK Bose
    Jun 7 at 3:34










  • @DKBose Thanks, I tried looking it over. I was at least able to get some errors at the terminal. It seems like the themes haven't adapted to the latest version of gtk.
    – axsd
    Jun 7 at 4:20












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Since I upgraded to Ubuntu 18.04, Okular doesn't follow the Adwaita-dark or Arc themes when I set them with the Gnome tweak tool. Is there any way to fix this? All I really want is for Okular to use dark colors for its menus and toolbars.



Edit: When I try



GTK2_RC_FILES=Adwaita:dark okular


from the terminal, I get a bunch of errors like



(okular:16699): Gtk-WARNING **: 22:58:15.581: Theme parsing error: gtk.css:137:54: Using one color stop with linear-gradient() is deprecated.
(okular:16699): Gtk-WARNING **: 22:58:15.587: Theme parsing error: gtk.css:1839:9: Expected a string.
(okular:16699): Gtk-WARNING **: 22:58:15.590: Theme parsing error: gtk.css:2913:17: Using Pango syntax for the font: style property is deprecated; please use CSS syntax


I've also tried downloading systemsettings and kde-config-gtk-style and activating the themes there, with no response.







share|improve this question













Since I upgraded to Ubuntu 18.04, Okular doesn't follow the Adwaita-dark or Arc themes when I set them with the Gnome tweak tool. Is there any way to fix this? All I really want is for Okular to use dark colors for its menus and toolbars.



Edit: When I try



GTK2_RC_FILES=Adwaita:dark okular


from the terminal, I get a bunch of errors like



(okular:16699): Gtk-WARNING **: 22:58:15.581: Theme parsing error: gtk.css:137:54: Using one color stop with linear-gradient() is deprecated.
(okular:16699): Gtk-WARNING **: 22:58:15.587: Theme parsing error: gtk.css:1839:9: Expected a string.
(okular:16699): Gtk-WARNING **: 22:58:15.590: Theme parsing error: gtk.css:2913:17: Using Pango syntax for the font: style property is deprecated; please use CSS syntax


I've also tried downloading systemsettings and kde-config-gtk-style and activating the themes there, with no response.









share|improve this question












share|improve this question




share|improve this question








edited Jun 7 at 4:13
























asked Jun 7 at 3:17









axsd

1033




1033







  • 2




    You may want to read something like wiki.archlinux.org/index.php/… because Okular is a qt application.
    – DK Bose
    Jun 7 at 3:34










  • @DKBose Thanks, I tried looking it over. I was at least able to get some errors at the terminal. It seems like the themes haven't adapted to the latest version of gtk.
    – axsd
    Jun 7 at 4:20












  • 2




    You may want to read something like wiki.archlinux.org/index.php/… because Okular is a qt application.
    – DK Bose
    Jun 7 at 3:34










  • @DKBose Thanks, I tried looking it over. I was at least able to get some errors at the terminal. It seems like the themes haven't adapted to the latest version of gtk.
    – axsd
    Jun 7 at 4:20







2




2




You may want to read something like wiki.archlinux.org/index.php/… because Okular is a qt application.
– DK Bose
Jun 7 at 3:34




You may want to read something like wiki.archlinux.org/index.php/… because Okular is a qt application.
– DK Bose
Jun 7 at 3:34












@DKBose Thanks, I tried looking it over. I was at least able to get some errors at the terminal. It seems like the themes haven't adapted to the latest version of gtk.
– axsd
Jun 7 at 4:20




@DKBose Thanks, I tried looking it over. I was at least able to get some errors at the terminal. It seems like the themes haven't adapted to the latest version of gtk.
– axsd
Jun 7 at 4:20










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










What worked for me was:



sudo apt-get install qt5-style-plugins


This is taken from the ArchLinux documentation. It also recommends setting the QT_QPA_PLATFORMTHEME=gtk2 environment variable, but I did not need that.



See also this other AskUbuntu question, this solution applies to all KDE applications.






share|improve this answer





















  • Perfect, thank you. Both were necessary for me.
    – axsd
    Jun 7 at 15:32










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1044340%2fhow-to-make-okular-follow-the-system-theme%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote



accepted










What worked for me was:



sudo apt-get install qt5-style-plugins


This is taken from the ArchLinux documentation. It also recommends setting the QT_QPA_PLATFORMTHEME=gtk2 environment variable, but I did not need that.



See also this other AskUbuntu question, this solution applies to all KDE applications.






share|improve this answer





















  • Perfect, thank you. Both were necessary for me.
    – axsd
    Jun 7 at 15:32














up vote
2
down vote



accepted










What worked for me was:



sudo apt-get install qt5-style-plugins


This is taken from the ArchLinux documentation. It also recommends setting the QT_QPA_PLATFORMTHEME=gtk2 environment variable, but I did not need that.



See also this other AskUbuntu question, this solution applies to all KDE applications.






share|improve this answer





















  • Perfect, thank you. Both were necessary for me.
    – axsd
    Jun 7 at 15:32












up vote
2
down vote



accepted







up vote
2
down vote



accepted






What worked for me was:



sudo apt-get install qt5-style-plugins


This is taken from the ArchLinux documentation. It also recommends setting the QT_QPA_PLATFORMTHEME=gtk2 environment variable, but I did not need that.



See also this other AskUbuntu question, this solution applies to all KDE applications.






share|improve this answer













What worked for me was:



sudo apt-get install qt5-style-plugins


This is taken from the ArchLinux documentation. It also recommends setting the QT_QPA_PLATFORMTHEME=gtk2 environment variable, but I did not need that.



See also this other AskUbuntu question, this solution applies to all KDE applications.







share|improve this answer













share|improve this answer



share|improve this answer











answered Jun 7 at 9:09









Kalith

363




363











  • Perfect, thank you. Both were necessary for me.
    – axsd
    Jun 7 at 15:32
















  • Perfect, thank you. Both were necessary for me.
    – axsd
    Jun 7 at 15:32















Perfect, thank you. Both were necessary for me.
– axsd
Jun 7 at 15:32




Perfect, thank you. Both were necessary for me.
– axsd
Jun 7 at 15:32












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1044340%2fhow-to-make-okular-follow-the-system-theme%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Trouble downloading packages list due to a “Hash sum mismatch” error

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Cutting all the characters after the last /