How do I change IAR Workbench to use a dark theme? - iar

I want to change the theme of IAR Workbench to a dark one. Another post says it uses Windows' theme. I just changed Windows 10 to dark mode, but IAR is still light.
Does anyone have any ideas on how to set IAR Workbench to a darker theme?

I've only ever been able to alter the color theme manually within Tools->Options->Editor->Colors and Fonts.

Related

Edit Qt Qapp style setting to create dark mode

Just found some awesome free (speech) software to speak to some lab equipment. The background is very white though and I would like to put it in to dark mode. I know nothing about C++. In main.ccp I found this qApp->setStyle(QStyleFactory::create("Fusion")); couldn't see any hex or rgb values that weren't tied to buttons, so i'm wondering if "Fusion" describes the background colour, and if so is there something I can replace it with to create a dark version of this software?

How to disable VS2019's syntax coloring for C++ and make it look like VS2017

I'm a light theme user, and I guess that makes me unpopular, but I'm sure there are still some light theme users out there. I have switched to VS2019 and the light theme (called Blue Theme) was a nightmare. It turned out it was an issue and the solution can be found in this thread.
My other question is the C++ syntax coloring in VS2019. It's just too many colors and makes it really hard for the eyes (once again if using the light theme).
I have looked but don't know where can I disable this new fancy syntax coloring and go back to VS2017's syntax coloring in VS2019. Any tips?
Here's a screenshot of what I have in VS2019:
I think it's a bit too much. I don't wanna see purple, green, red and brown.
As per this Microsoft link there is supposed to be this Color Scheme and it can be set to VS2017, as per this screenshot:
But for some reason I don't have it and I have just updated it and this what my Text Editor->C/C++->View looks like:
It looks the only way to solve this problem is to change the colors one by one. But you may ask, how do I come up with colors, I'm not a graphic/UI/UX designer? Here's how. You open the colors in VS2017 in Options->Fonts and Colors and select Text Editor in Show settings for:, and there when you scroll down you will see the colors for all C++ keywords.
That was Step 1. In Step 2 you go to the same dialog in VS2019, and one buy one change VS2019 settings to match those of VS2019. Having two monitors or one wide monitor helps.
Here's the screenshot:

WebStorm editor tab background colour

I want to use a light theme in WebStorm 2017.1 but for some reason the editor tabs are always dark.
I can change the font colour but that also changes it in the project tree view which has a white background.
The theme under Appearance is set to IntelliJ and the editor theme is set to default but I have tried it with many combinations.
Is this a bug or is there a setting I haven't found yet?
The issue was caused by the Material Theme plugin, disabled it and everything looks fine.
Thanks to #LazyOne for pointing me in the right direction.

How to recognize that an application is running in dark theme on Linux?

I've developed an application which uses qscintilla as a text editor. I also implemented custom lexer to highlight language specific keywords. So far styles for highlighted keywords are hardcoded in mine application and it looks quite ok in the default theme on Windows/Linux(Ubuntu)/Mac.
The problems appears when user chooses a dark theme (on Linux). Depending on QScintilla version some parts of editor do reflect current theme colors while other don't. Moreover mine custom styles render dark blue letters on dark grey background.
I'm looking for some Qt class, which will allow me access of the current system theme. I do not want to define styles for mine application widgets.
I want to know what is system default non-proportional font, what is it's size, color, ... If I knew that dark scheme is used I would choose complementary colors for keyword highlighting.
I checked docs for QStyle, QPlatformTheme and other qt classes and it seems to me that these serve more for defining of new styles, then for describing the current style.
For the system colours, you can use the group/role of the QPalette class.
For the system fonts, you can create a QFont using e.g. "Serif", "Sans Serif", "Monospace", etc with an appropriate style hint to discover the defaults.
NB:
From the Qt Docs:
Warning: Some styles do not use the palette for all drawing, for
instance, if they make use of native theme engines. This is the case
for both the Windows Vista and the macOS styles.
Here is some python code using QPalette that works for me on Linux:
label = QLabel("am I in the dark?")
text_hsv_value = label.palette().color(QPalette.WindowText).value()
bg_hsv_value = label.palette().color(QPalette.Background).value()
dark_theme_found = text_hsv_value > bg_hsv_value

Set console font size in fullscreen mode

I use SetConsoleDisplayMode() to switch the console into fullscreen mode. It is 80x25, centered in the middle with quite a small font, which I'd like to enlarge.
I still work on WinXP, so SetCurrentConsoleFontEx() is not an option for me. I found this link which describes some undocumented functions including SetConsoleFont(). They work great: the GetNumberOfConsoleFonts() returns 9 usable fonts on my system and I can pick some, however under fullscreen 0 font were found, which means it is not supported.
I also tried to create shortcut to the program and set the console there, but there's no fullscreen option and after switching to fullscreen all font settings are discarded.
I'd like to convince the screen to show nice big text font, just like in sci-fi movies or in good old BIOS assembly coding. Is it possible under XP?
The full-screen console mode switches the display adapter into 80x25 VGA text mode.
Thus font-rendering is completely different. In a normal console window the font is rendered using GDI; in full-screen mode Windows writes a character code to the display buffer and the hardware renders the font.
VGA supports loadable fonts and Windows uses this feature to support its different language versions. I don't remember if the font is fixed by the language version of Windows or if its chosen to match the current code page. (Full-screen mode doesn't work on x64 and I don't have a 32-bit system handy to try it.)
I'm not aware of you getting any kind of choice in the VGA font used, though there's probably some mileage in overwriting the VGA fonts in the Fonts directory. Though obviously this isn't something you'd want to be doing in production.
Finally, it might be possible to change the font using an actual DOS app! I know Windows NT traps some video-related IOs and passes them through to the hardware. This isn't much use though.
Did you try to write out GetLastError()? My opinion is that this will not be working on windows 7 or later.
Maybe you could try this: #define _WIN32_WINNT 0x0601
Cheers!