How to change color of title in installation?
-
I want to change color of title in installation.
at config. xml(https://doc.qt.io/qtinstallerframework/qt-installer-framework-stylesheet-example.html)<TitleColor>#FFFFFF</TitleColor>
: Color of title in installation screen is white.
I create controller.qs
function Controller() { } Controller.prototype.IntroductionPageCallback = function() { var widget = gui.currentPageWidget(); if(widget != null){ widget.title = "New title"; widget.MessageLabel.setText("New Message"); } }
config.xml (https://doc.qt.io/qtinstallerframework/noninteractive.html)
<TitleColor>#123456</TitleColor> <ControlScript>controller.qs</ControlScript>
Then only the title color of the IntroductionPage is black.
How can I change color of title in IntroductionPage to white?++
I consider to use style sheet, but I couldn't find element for color of title.
(https://doc.qt.io/qt-5/stylesheet-reference.html) -
What do you exactly want?
I'm very confused by your description...
Do you mean you want the title to be white in the IntroductionPage but black in other pages? -
@Bonnie No, the title color of all pages must be white. But after adding controller.qs, IntroductionPage's title color is black. The title changes to "New Title" in controller.qs.
-
@narae
Then do you have to change the title text?
If you don't change it, it will be white. -
@narae
Ok.
Actually the installer set the title color by using rich text (html code).
So you can do the samewidget.title = "<font color=\"#FFFFFF\">New title</font>";