When I Change Font.Color of a TNewStaticText to any color, the TNewStaticText stays black.
But When I Change Font.Color of a TLabel everything works fine.
But when I use TLabel I get wierd results on windows xp.
Why does TNewStaticText always display the black color?
What stable text in inno setup can I use that won't change color or any other properties on different computers?
Related
I'm building a Safari App Extension on MacOS. However my toolbar item in Safari is blue tinted. And whatever the PDF image I put in my project, the toolbar item does change the image, but the tint stays blue. Is there a way to put the initial gray tint back ?
Try to recolor your icon applying a Sepia filter.
That will make your icon appear B&W.
I see that QTabWidget background color is lighter than container widget. How to set its background to same as container widget has? Or better make it transparent?
I have following code:
tabWidget->setPalette(palette());
tabWidget->setBackgroundRole(backgroundRole());
tabWidget->setStyle(style()); // Set parent widget style
QPalette pal = tabWidget->palette();
pal.setColor(QPalette::Base, palette().background().color());
tabWidget->setPalette(pal);
which worked for me with QTreeWidget, however does not work for QTabWidget. Why Qt makes it different?
Solved by setting autoFillBackground to true in UI. However tabs titles background still white - any way to solve?
Is it possible to change the font that the actual message part of the window created using CreateOutputMsgMemoPage displays in?
I need to return some results from a database query to a window in Inno Setup, which I am doing by reading in from a file using:
LoadStringFromFile(ExpandConstant('{app}\Output.txt'), astrResults);
and then creating the page like so:
ResultsPage := CreateOutputMsgMemoPage(wpInstalling,
'Results', 'The following results were returned from the database.',
'',
astrResults);
The trouble is that I am losing the columnar tab delimited formatting from the text file as the text is being displayed in a variable width font. Therefore, I need to used a fixed width font (e.g. Lucida Console) to maintain the correct formatting. Is there a way to do this?
It is possible to use:
ResultsPage.RichEditViewer.Font.Name := 'Lucida Console';
to change the font and:
ResultsPage.RichEditViewer.Font.Size := 9;
to change the size. Thank you #TLama.
I’m using PyQt4/PySide, but this problem occurs in both, so I think it’s a Qt problem generally. I have a TableView. When I want to set the background color of highlighted table items in Windows, I can get the TableView’s palette and call
palette.setColor(QPalette.Highlight, QColor(someColor))
and that sets the background color of a highlighted item, no problem. However, this does not work in Linux. (Specifically the different versions of Ubuntu that I’ve tried.) Instead the highlighted color is always an orange color that Ubuntu likes to use. Is there a way to fix this? Setting other types of colors, such as QPalette.Text, works fine, it’s a QPalette.Highlight issue only.
A quick question regarding the Chrome Badge/Browser Action API.
Is there a method to set the badge text colour? (much like you can with the back colour).
I'm sure I remember seeing a reference to a method such as SetBadgeTextColor() somewhere on the Internet (not sure where, mind).
Edit: Chromium Wiki - Browser Actions Proposal
The link above is where I saw a method to set the badge text colour. Was this proposal ever implemented?
You cannot change the text color directly.
What you can do is to paint the base image on a canvas, then draw the text using your desired color and finally use chrome.browserAction.setIcon to update the badge.
chrome ext detects badge bg color (light or dark) and set text color automatically (black or white). if your background color is around the boundary of those. try to increase or decrease your bg color code e.g your bg color is red #FF0000 then chrome will detects it as light but when you decrease the color code hex to #FE0000 it will detected as dark, and it's still solid red in our eyes