Using VCL Visual Styles and License RTF File text colour is wrong - inno-setup

I am trying out the VCL Visual Styles as an alternative to the skinning DLL I was previously using.
At the moment I am using the skin:
#define Skin "Carbon.vsf"
When the installer shows the RTF License file file the colouring is not as I expect:
The text is black and the background dark. But the other two pages are better:
I specify all my license files in the usual way in the [Languages] section:
Name: "English"; MessagesFile: "compiler:Default.isl"; LicenseFile: "..\..\Inno\l.eng\LicenseEnglish.rtf"; InfoAfterFile: "..\..\Inno\l.eng\InfoAfterEnglish.rtf"
How can I set this skin to use white text for the license file (like on the other pages I have shown)? Why doesn't it do so anyway?
Ideally i would like the Visual Studio 2019 Dark Theme as the skin but don't know how to do that - separate issue!
Update
If I try Amakrits style the license page looks like this:
And:
So it is doing the same thing for multiple style definitions.

For the benefit of readers of this question I had to re-create my RTF file in WordPad. It had been created in Microsoft Word and that seems to be the reason. Either that or some other RTF encoding issue.
Eitherway, creating the file again WordPad resolved the problem.

Related

Windows 8.1 - Possible to change tile colour?

Since upgrading to Windows 8.1 from Windows 8 I've noticed the colour of the tiles looks awful, is there a way to change these that is...
Free
Doesn't involve hacking around with registry/XML files
As you can see below my GIT icons are barely visible :(
I don't have a non XML Solution, but the XML solution is quite easy to follow and could easily be converted into a tool.
For example to change the background of the GIT Bash tile:
the shorcut of the tile links to something like: "C:\Program Files (x86)\Git\bin\sh.exe" --login -i (to find the shortcut: right click -> goto location)
Go to the folder of the executable (here C:\Program Files (x86)\Git\bin)
Create a sh.visualelementsmanifest.xml with the content:
<Application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<VisualElements
BackgroundColor="maroon"
ShowNameOnSquare150x150Logo="on"
ForegroundText="light"/>
</Application>
(full spec at http://msdn.microsoft.com/en-us/library/windows/apps/dn393983.aspx)
Update the shorcut file time stamp (e.g. copy file, delete old file)
Enjoy new tile. For example:
In reference to Xyroid's answer which has - so far - received no points, maybe this is because the link has changed / gone.
OblyTile, for those who want a GUI to manage Tile design, works perfectly on my Windows 8.1
The link to this is:
http://forum.xda-developers.com/showthread.php?t=1899865
In particular, the developer has provided much improved icons for some internal windows apps (e.g. Control Panel) where the standard tile doesn't really match the design of the other Modern App tiles.
(I would have just added a comment, but I still need more reputation)!
According to Desktop App Tiles on the Start Screen, the background color of desktop app's Start menu tile is derived from the user's chosen background color, so try changing Start menu's background color.
Also checkout
How to customize tiles (change/bigger icon, change color) for desktop applications in the Start Screen?
How to Create Custom Windows 8 Tile Icons for Any Desktop Program

How do I use visual studio 2012 dark theme with windows 8 high contrast theme?

When I use a standard Windows aero theme in Windows 8, the VS2012 lets me to choose between light and dark themes, but I created myself a convenient high contrast theme in Windows 8, and now there is only a greyed option in the VS settings that says "high contrast", and I cannot change it.
I belong to the few people, who like the new dark theme of Visual Studio, but unfortunately I can't use it with the new high contrast Windows themes.
Can someone help me with this one?
My colleague found a way to use the Dark theme in Visual Studio when Windows uses the High Contrast mode. He followed these steps:
Export this registry key:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\Themes{1ded0138-47ce-435e-84ef-9ec1f439b749}
(this should the key of the Dark theme)
In the exported file replace the GUID of the Dark Theme ({1ded0138-47ce-435e-84ef-9ec1f439b749}) with the GUID of the High Contrast theme ({a5c004b4-2d4b-494e-bf01-45fc492522c7}):
Import the reg file
Start Visual Studio. This works for him. It's even possible to mix theme settings from the High Contrast theme with those of the Dark theme. Just replace one of the subkeys content with one of the subkeys of another theme.
The GUID's for the themes appear to be the same on both our systems. But you should always check them before you try this. Also a backup of the keys is recommended!
Here's the register change that changes the high contrast skin into the dark skin in Visual Studio 2015. By applying this file you can use the dark skin when Windows runs in High Contrast.
USE AT OWN RISK!!!
Export the reg values for the High contrast and Dark skin from
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config\Themes\ (You can see which one it is at the value from the name field)
Change the GUID in the Dark Skin export to the GUID from the High Contrast skin export. (Use "Replace All" to do this) (The GUID looks something like this: {a5c004b4-2d4b-494e-bf01-45fc492522c7})
Addition: Copy the values from the Workflow Designer part of the High Contrast skin export and paste it in the Dark skin export (this layout is better than the Dark skin layout for this designer)
Save the changed Dark skin export and execute it while VS2015 is not running.
I made a PowerShell Script for this because I kept having to update the registry values with every update.
This is for Visual Studio 2015. You would just need to update the location values for the others.
$HighConstrastTheme = "HKCU:\SOFTWARE\Microsoft\VisualStudio\14.0_Config\Themes\{a5c004b4-2d4b-494e-bf01-45fc492522c7}"
$DarkTheme = "HKCU:\SOFTWARE\Microsoft\VisualStudio\14.0_Config\Themes\{1ded0138-47ce-435e-84ef-9ec1f439b749}"
Remove-Item -Path $HighConstrastTheme -Recurse
Copy-Item -Path $DarkTheme -Destination $HighConstrastTheme -Recurse
As you've found, the High Contrast theme in Visual Studio is automatically linked to enabling Windows' "High contrast" mode in "Ease of Access".
While you can't change themes while that mode's active, you can still change some color settings (editor, windows, etc.) directly via Tools -> Options -> Environment -> Fonts & Colors. Many settings come directly from Windows, but you still have some options here.
Not for this scenario, but just FYI for anyone intrested in tweaking themes, the Visual Studio 2012 Color Theme Editor extension is pretty handy. Scott H. has a post on using it.

Reset Dreamweaver CS5 coloring scheme

I had been modifying my HTML code coloring scheme in Dreamweaver CS5 via
Edit > Preferences > Code Coloring > Edit Coloring Scheme
and now it looks terribad, how do I reset it back to the default settings?
I think that you can find answer here. It is a same question.
You need to restore code coloring files.
The original folder referred to in that link is located at:
C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5\configuration (64 bit OS) or C:\Program Files\Adobe\Adobe Dreamweaver CS5\configuration (32 bit OS)
Copy the "CodeColoring" folder there and paste it here:
C:\Users\YOURUSERNAME\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configuration
EDIT:
Or you can view here how to restore preferences in Dreamweaver CS4/CS5
What about a dark color scheme for Dreamweaver's code view? It's not the default color scheme but I think it's a ton better. You can also find the default Dreamweaver colors there if dark is not to your taste.

How do I reset code color scheme to default in Dreamweaver CS5 (Windows)?

I have read this post, but the process is not clear, I don't find the CodeColoring folder.
So, how to reset code color scheme to default in Dreamweaver CS5 (Windows)?
The original folder referred to in that link is located at:
C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5\configuration (64 bit OS)
or
C:\Program Files\Adobe\Adobe Dreamweaver CS5\configuration (32 bit OS)
Copy the "CodeColoring" folder there and paste it here:
C:\Users\YOURUSERNAME\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configuration
That will reset DW to default code coloring. Alternately you can rename the User Configuration folder to Configuration.old and DW will rebuild it on next launch and reset all preferences to default...
I created a Dreamweaver color theme editor, you can use it to restore the default theme, or create your own theme starting with the default theme or a dark theme I made that's designed to make it easy to transition to a dark theme.
You can edit 18 different colors, and then you can download an xml file that replaces the current one. It takes care of all the redundant color settings. It also has instructions for how to install the theme. Super easy.
Try it out! http://inorganik.net/dw-color-theme-editor
I found a way to get Dreamweaver CC to colorize Coldfusion Coding:
c:\system...
user...
attuid file...
AppDate...
Roaming...
Adobe...
Dreamweaver CS5.5 or Dreamweaver CS6...
en_US...
Configuration...
ColorCoding...
Color.xml...
open in text editor...
Copy this block...
colorGroup doctypes="ColdFusion"..../colorGroup doctypes="ColdFusion"
and
colorGroup doctypes="CSS" .... /colorGroup doctypes="CSS"
Paste to
c:\system...
user...
attuid file...
AppDate...
Roaming...
Adobe...
Dreamweaver CC 2014...
en_US...
Configuration...
ColorCoding...
Color.xml...
we will have to maintain colorizing coldfusion code tags in
Dreamweaver CS5.5 or CS6 and copy/paste the code blocks up into CC 2014

How do I change the code page MS Visual Studio 2008 uses to open files?

I have a cpp file that uses ibm cp437 and Visual C++ keeps reading it with windows-1252. How do I make Visual C++ use the right code page for the file?
Alright, I figured it out myself. For the curious, here is the answer:
Right click the file in the Solution Explorer.
Select "Open With..."
Choose "C++ Source Code Editor (with encoding)"
A new box appears to specify Encoding. Choose "OEM United States - Codepage 437"
Done.
I also encountered these errors in my environments. I think there's any easier way to change the default code pages.
In windows 10, you could go to "Settings" -> "Region" -> "Administrative" tab -> "Language for non-Unicode programs". Then you could choose the region you want.
In this way, all the codes read from Visual Studio would use the code page whatever you want.
For example, the default setting for me is Chinese (Traditional, Taiwan). The code page is 950. But the codes are using windows-1252, therefore, I change the region to English (United States).
That's it.
Hope the solution could help you.
Thanks.
Unless you need the CP437 encoding, why don't you convert it to CP1252, UTF-8 or MS 'Unicode' (UCS-2)? Any reasonably capable editor should be able to do it.
VS2008 can do it - check out the Advanced Save option on the File menu.
Edit:
If you go to Source Control Explorer, right-click on the file, select 'Properties', you can set the encoding on the 'General' tab page. 'IBM437' is one of the choices.

Resources