Discussion:
[WiX-users] Custom Font Color for Dialog Subtitle
Francisco Gabriel Malbrán
2011-04-04 19:35:55 UTC
Permalink
Hello WiX list.

I would like to know if there is any way to change the Dialog's subtitle
font color independently from the text in the content of a dialog.

Scenario is: I have two background images, one for first and last screen and
one for dialogs in the middle. The one for dialogs does not get along with
black text in the title.

I am using a customized dialog set based on WixUI_FeatureTree.
I've found that a text style with Id="WixUI_Font_Title" will change the
format of the title of my dialogs. However, there is still the "subtitle",
that little description just below the title that respond to:
"WixUI_Font_Normal".

This is kind of odd for me, since I expected all text related to top banner
to be format-independat from the text in the "content" area so to speak.

Can anybody lend a hand on this?

Thanks in advance & best regards
Bob Arnson
2011-04-14 21:08:56 UTC
Permalink
On 04-Apr-11 15:35, Francisco Gabriel Malbrán wrote:
> I would like to know if there is any way to change the Dialog's subtitle
> font color independently from the text in the content of a dialog.

You can add your own localization strings to add a text style.
Otherwise, no; the strings in the subtitle don't have a text style so
they get the default style.

--
sig://boB
http://joyofsetup.com/
Francisco Gabriel Malbrán
2011-04-18 19:03:11 UTC
Permalink
Thanks Bob.

What I've done finally is to customize the dialogs with subtitles and add
the style before the localization variable, so it would override the style
coming from the localization file. Example:

<UI>
<TextStyle Id="DlgSubTitleFont" FaceName="Tahoma" Size="8"
Bold="no" Red="255" Green="255" Blue="255" />
<Dialog Id="EULACustomDlg" Width="370" Height="270"
Title="!(loc.LicenseAgreementDlg_Title)">
<Control Id="Description" Type="Text" X="25" Y="23" Width="340"
Height="15" Transparent="yes" NoPrefix="yes"
Text="{\DlgSubTitleFont}!(loc.LicenseAgreementDlgDescription)" />
.
.
.
</UI>

This is ugly, but worked. The other solution was to modify all the
localization files, which was uglier.

Thing is that conceptually I believe no style should be placed in the
localization files. This are for translations. For style I would modify only
dialogs. And even better: if the styles were separated for title,
description, and content, since I believe this would be more
adaptable/customizable than current approach.

Best regards

2011/4/14 Bob Arnson <***@joyofsetup.com>

> On 04-Apr-11 15:35, Francisco Gabriel Malbrán wrote:
>
>> I would like to know if there is any way to change the Dialog's subtitle
>> font color independently from the text in the content of a dialog.
>>
>
> You can add your own localization strings to add a text style. Otherwise,
> no; the strings in the subtitle don't have a text style so they get the
> default style.
>
> --
> sig://boB
> http://joyofsetup.com/
>
>


--
Francisco Gabriel Malbrán
Licenciado en Ciencias de la Computación
Online CV: www.linkedin.com/in/franciscomalbran
Shira1992
2013-11-13 13:10:48 UTC
Permalink
@ Bob: you said:

"You can add your own localization strings to add a text style.
Otherwise, no; the strings in the subtitle don't have a text style so
they get the default style. "

But you don´t say how I get it work.

Can you tell it?





--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-Font-Color-for-Dialog-Subtitle-tp6239927p7590623.html
Sent from the wix-users mailing list archive at Nabble.com.
Alain Forget
2013-11-13 14:01:59 UTC
Permalink
You probably need to go into the WiX source (found here: https://wix.codeplex.com/downloads/get/582222) and get the a copy of the .wxl and .xml files of the theme your installer uses. In my case, these were the RtfTheme files in the BalExtension. You can then edit these local copies however you like to make little adjustments to the UI. I point to my own custom versions of these in my burn bootstrapper with the following:

<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" >
<bal:WixStandardBootstrapperApplication
LicenseFile="MyLicense.rtf"
LocalizationFile="MyRtfTheme.wxl"
LogoFile="MyLogo.png"
SuppressOptionsUI="yes"
ThemeFile="MyRtfTheme.xml"
/>
</BootstrapperApplicationRef>

But if you're just building an MSI package (rather than a burn bootstrapper), you'll probably have to point to the .wxl and .xml files in a different manner (which I don't know, offhand).

Alain

-----Original Message-----
From: Shira1992 [mailto:***@andavis.de]
Sent: Wednesday, November 13, 2013 08:11
To: wix-***@lists.sourceforge.net
Subject: Re: [WiX-users] Custom Font Color for Dialog Subtitle

@ Bob: you said:

"You can add your own localization strings to add a text style.
Otherwise, no; the strings in the subtitle don't have a text style so
they get the default style. "

But you don´t say how I get it work.

Can you tell it?





--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-Font-Color-for-Dialog-Subtitle-tp6239927p7590623.html
Sent from the wix-users mailing list archive at Nabble.com.
Blair Murri
2013-11-14 05:23:17 UTC
Permalink
For MSI UI, Text Styles are described in the following paragraph from the page: http://msdn.microsoft.com/library/windows/desktop/aa367524.aspx

"Controls can have a predefined font style. To set the font and font style of a text string, prefix the string of displayed characters with {\style} or {&style}. Where style is an identifier listed in the TextStyle column of the TextStyle table. If neither of these are present, but the DefaultUIFont property is defined as a valid text style, that font will be used."

-Blair

> From: ***@cmu.edu
> To: wix-***@lists.sourceforge.net
> Date: Wed, 13 Nov 2013 09:01:59 -0500
> Subject: Re: [WiX-users] Custom Font Color for Dialog Subtitle
>
> You probably need to go into the WiX source (found here: https://wix.codeplex.com/downloads/get/582222) and get the a copy of the .wxl and .xml files of the theme your installer uses. In my case, these were the RtfTheme files in the BalExtension. You can then edit these local copies however you like to make little adjustments to the UI. I point to my own custom versions of these in my burn bootstrapper with the following:
>
> <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" >
> <bal:WixStandardBootstrapperApplication
> LicenseFile="MyLicense.rtf"
> LocalizationFile="MyRtfTheme.wxl"
> LogoFile="MyLogo.png"
> SuppressOptionsUI="yes"
> ThemeFile="MyRtfTheme.xml"
> />
> </BootstrapperApplicationRef>
>
> But if you're just building an MSI package (rather than a burn bootstrapper), you'll probably have to point to the .wxl and .xml files in a different manner (which I don't know, offhand).
>
> Alain
>
> -----Original Message-----
> From: Shira1992 [mailto:***@andavis.de]
> Sent: Wednesday, November 13, 2013 08:11
> To: wix-***@lists.sourceforge.net
> Subject: Re: [WiX-users] Custom Font Color for Dialog Subtitle
>
> @ Bob: you said:
>
> "You can add your own localization strings to add a text style.
> Otherwise, no; the strings in the subtitle don't have a text style so
> they get the default style. "
>
> But you don´t say how I get it work.
>
> Can you tell it?
>
>
>
>
>
> --
> View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-Font-Color-for-Dialog-Subtitle-tp6239927p7590623.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
> OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
> Free app hosting. Or install the open source package on any LAMP server.
> Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
> http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> ------------------------------------------------------------------------------
> DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
> OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
> Free app hosting. Or install the open source package on any LAMP server.
> Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
> http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
Shira1992
2013-11-14 06:23:29 UTC
Permalink
Thank you for answering!

@ Blair: Where and how can I edit the TextStyle table? I tried it in the
localization wxl file, in the file where the dialogs are defined and also in
the normal wxs file. But nothing worked.



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-Font-Color-for-Dialog-Subtitle-tp6239927p7590647.html
Sent from the wix-users mailing list archive at Nabble.com.
Shira1992
2013-11-14 08:58:55 UTC
Permalink
I solved my Problem and found the part where the TextStyle element have to
be.



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-Font-Color-for-Dialog-Subtitle-tp6239927p7590650.html
Sent from the wix-users mailing list archive at Nabble.com.
Continue reading on narkive:
Search results for '[WiX-users] Custom Font Color for Dialog Subtitle' (Questions and Answers)
9
replies
How do i burn AVI files to dvd?
started 2009-04-22 10:33:31 UTC
consumer electronics
Loading...