mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Renaming prefs to live in the browser.display namespace: background_color, foreground_color, use_document_fonts, use_document_colors, base_font_scaler, wfe.use_windows>colors, screen_resolution. r=alecf, a=chofmann (31136)
This commit is contained in:
parent
d17ba2eaa9
commit
48eece1393
@ -56,7 +56,7 @@
|
||||
<colorpicker allowevents="true" id="foregroundColorpicker" palettename="standard" onclick="setColorWell(this.parentNode.parentNode, 'foregroundtext', false);"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<data id="foregroundText" pref="true" preftype="color" prefstring="browser.foreground_color" prefattribute="value" wsm_attributes="value"/>
|
||||
<data id="foregroundText" pref="true" preftype="color" prefstring="browser.display.foreground_color" prefattribute="value" wsm_attributes="value"/>
|
||||
</box>
|
||||
<box>
|
||||
<text class="label" value="&backgroundColor.label;" accesskey="&backgroundColor.label;" for="backgroundmenu"/>
|
||||
@ -68,10 +68,10 @@
|
||||
<colorpicker allowevents="true" id="backgroundColorpicker" palettename="standard" onclick="setColorWell(this.parentNode.parentNode, 'background', false);"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<data id="background" pref="true" preftype="color" prefstring="browser.background_color" prefattribute="value" wsm_attributes="value"/>
|
||||
<data id="background" pref="true" preftype="color" prefstring="browser.display.background_color" prefattribute="value" wsm_attributes="value"/>
|
||||
</box>
|
||||
<checkbox id="browserUseWindowsColors" value="&useWindowsColors.label;" accesskey="&useWindowsColors.accesskey;"
|
||||
pref="true" preftype="bool" prefstring="browser.wfe.use_windows_colors" prefattribute="checked"/>
|
||||
pref="true" preftype="bool" prefstring="browser.display.wfe.use_windows_colors" prefattribute="checked"/>
|
||||
</titledbox>
|
||||
|
||||
<titledbox orient="vertical" flex="1">
|
||||
@ -109,7 +109,7 @@
|
||||
<html>&someProvColors;</html>
|
||||
|
||||
<radiogroup id="browserUseDocumentColors" orient="vertical" autostretch="never"
|
||||
pref="true" preftype="bool" prefstring="browser.use_document_colors"
|
||||
pref="true" preftype="bool" prefstring="browser.display.use_document_colors"
|
||||
prefattribute="data">
|
||||
<radio group="browserUseDocumentColors" data="true" value="&alwaysUseDocumentColors.label;" accesskey="&alwaysUseDocumentColors.accesskey;"/>
|
||||
<radio group="browserUseDocumentColors" data="false" value="&useMyColors.label;" accesskey="&useMyColors.label;"/>
|
||||
|
@ -212,17 +212,17 @@ function saveFontPrefs()
|
||||
|
||||
try
|
||||
{
|
||||
var currDPI = pref.GetIntPref( "browser.screen_resolution" );
|
||||
var currFonts = pref.GetIntPref( "browser.use_document_fonts" );
|
||||
var currDPI = pref.GetIntPref( "browser.display.screen_resolution" );
|
||||
var currFonts = pref.GetIntPref( "browser.display.use_document_fonts" );
|
||||
var currDefault = pref.CopyUnicharPref( "font.default" );
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
}
|
||||
if( currDPI != fontDPI )
|
||||
pref.SetIntPref( "browser.screen_resolution", fontDPI );
|
||||
pref.SetIntPref( "browser.display.screen_resolution", fontDPI );
|
||||
if( currFonts != documentFonts )
|
||||
pref.SetIntPref( "browser.use_document_fonts", documentFonts );
|
||||
pref.SetIntPref( "browser.display.use_document_fonts", documentFonts );
|
||||
if( currDefault != defaultFont )
|
||||
{
|
||||
dump("*** defaultFont = " + defaultFont + "\n");
|
||||
|
@ -186,7 +186,7 @@
|
||||
<!-- note that this removes the ability to select dynamic fonts -->
|
||||
<checkbox id="browserUseDocumentFonts"
|
||||
value="&useDocumentFonts.label;" accesskey="&useDocumentFonts.accesskey;"
|
||||
preftype="int" prefstring="browser.use_document_fonts"/>
|
||||
preftype="int" prefstring="browser.display.use_document_fonts"/>
|
||||
|
||||
</titledbox>
|
||||
|
||||
@ -195,7 +195,7 @@
|
||||
<html>&fontScalingIntro;</html>
|
||||
<box autostretch="never">
|
||||
<text class="label" value="&resolution.label;" accesskey="&resolution.accesskey;" for="browserScreenResolution"/>
|
||||
<textfield id="browserScreenResolution" size="4" maxlength="3" value="&defaultScaling;" preftype="int" prefstring="browser.screen_resolution"/>
|
||||
<textfield id="browserScreenResolution" size="4" maxlength="3" value="&defaultScaling;" preftype="int" prefstring="browser.display.screen_resolution"/>
|
||||
<text class="label" value="&fontScalingExample;"/>
|
||||
</box>
|
||||
</titledbox>
|
||||
|
Loading…
Reference in New Issue
Block a user