Kaydet (Commit) 324de04a authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Caolán McNamara

Resolves fdo#87016 Kill "Use system font for user interface" for good

Change-Id: Ica648d4a49ef4f36fdab557a98e7df9d31a3a240
Reviewed-on: https://gerrit.libreoffice.org/13311Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst d795be27
...@@ -561,19 +561,6 @@ OfaViewTabPage::OfaViewTabPage(vcl::Window* pParent, const SfxItemSet& rSet) ...@@ -561,19 +561,6 @@ OfaViewTabPage::OfaViewTabPage(vcl::Window* pParent, const SfxItemSet& rSet)
get(m_pWindowSizeMF, "windowsize"); get(m_pWindowSizeMF, "windowsize");
get(m_pIconSizeLB, "iconsize"); get(m_pIconSizeLB, "iconsize");
get(m_pIconStyleLB, "iconstyle"); get(m_pIconStyleLB, "iconstyle");
get(m_pSystemFont, "systemfont");
VclContainer *pRef = get<VclContainer>("refgrid");
//fdo#65595, we need height-for-width support here, but for now we can
//bodge it
Size aPrefSize(m_pSystemFont->get_preferred_size());
Size aSize(pRef->get_preferred_size());
if (aPrefSize.Width() > aSize.Width())
{
aSize = m_pSystemFont->CalcMinimumSize(aSize.Width());
m_pSystemFont->set_width_request(aSize.Width());
m_pSystemFont->set_height_request(aSize.Height());
}
get(m_pFontAntiAliasing, "aafont"); get(m_pFontAntiAliasing, "aafont");
get(m_pAAPointLimitLabel, "aafrom"); get(m_pAAPointLimitLabel, "aafrom");
...@@ -602,12 +589,6 @@ OfaViewTabPage::OfaViewTabPage(vcl::Window* pParent, const SfxItemSet& rSet) ...@@ -602,12 +589,6 @@ OfaViewTabPage::OfaViewTabPage(vcl::Window* pParent, const SfxItemSet& rSet)
// #i97672# // #i97672#
m_pSelectionCB->SetToggleHdl( LINK( this, OfaViewTabPage, OnSelectionToggled ) ); m_pSelectionCB->SetToggleHdl( LINK( this, OfaViewTabPage, OnSelectionToggled ) );
if( ! Application::ValidateSystemFont() )
{
m_pSystemFont->Check(false);
m_pSystemFont->Enable(false);
}
// Set known icon themes // Set known icon themes
OUString sAutoStr( m_pIconStyleLB->GetEntry( 0 ) ); OUString sAutoStr( m_pIconStyleLB->GetEntry( 0 ) );
m_pIconStyleLB->Clear(); m_pIconStyleLB->Clear();
...@@ -826,21 +807,12 @@ bool OfaViewTabPage::FillItemSet( SfxItemSet* ) ...@@ -826,21 +807,12 @@ bool OfaViewTabPage::FillItemSet( SfxItemSet* )
} }
SvtAccessibilityOptions aAccessibilityOptions; SvtAccessibilityOptions aAccessibilityOptions;
if( aAccessibilityOptions.GetIsSystemFont() != m_pSystemFont->IsChecked() &&
m_pSystemFont->IsEnabled() )
{
aAccessibilityOptions.SetIsSystemFont( m_pSystemFont->IsChecked() );
bModified = true;
bMenuOptModified = true;
}
if( bMenuOptModified ) if( bMenuOptModified )
{ {
// Set changed settings to the application instance // Set changed settings to the application instance
AllSettings aAllSettings = Application::GetSettings(); AllSettings aAllSettings = Application::GetSettings();
StyleSettings aStyleSettings = aAllSettings.GetStyleSettings(); StyleSettings aStyleSettings = aAllSettings.GetStyleSettings();
if( m_pSystemFont->IsEnabled() )
aStyleSettings.SetUseSystemUIFonts( m_pSystemFont->IsChecked() );
aAllSettings.SetStyleSettings(aStyleSettings); aAllSettings.SetStyleSettings(aStyleSettings);
Application::MergeSystemSettings( aAllSettings ); Application::MergeSystemSettings( aAllSettings );
Application::SetSettings(aAllSettings); Application::SetSettings(aAllSettings);
...@@ -888,12 +860,6 @@ void OfaViewTabPage::Reset( const SfxItemSet* ) ...@@ -888,12 +860,6 @@ void OfaViewTabPage::Reset( const SfxItemSet* )
m_pIconStyleLB->SelectEntryPos( nStyleLB_InitialSelection ); m_pIconStyleLB->SelectEntryPos( nStyleLB_InitialSelection );
m_pIconStyleLB->SaveValue(); m_pIconStyleLB->SaveValue();
if( m_pSystemFont->IsEnabled() )
{
SvtAccessibilityOptions aAccessibilityOptions;
m_pSystemFont->Check( aAccessibilityOptions.GetIsSystemFont() );
}
// Screen Scaling // Screen Scaling
m_pWindowSizeMF->SetValue ( pAppearanceCfg->GetScaleFactor() ); m_pWindowSizeMF->SetValue ( pAppearanceCfg->GetScaleFactor() );
// Mouse Snap // Mouse Snap
......
...@@ -427,22 +427,6 @@ ...@@ -427,22 +427,6 @@
<property name="top_attach">0</property> <property name="top_attach">0</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkCheckButton" id="systemfont:wrap">
<property name="label" translatable="yes">Use system _font for user interface</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="hexpand">True</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
</packing>
</child>
<child> <child>
<object class="GtkCheckButton" id="aafont"> <object class="GtkCheckButton" id="aafont">
<property name="label" translatable="yes">Screen font antialiasin_g</property> <property name="label" translatable="yes">Screen font antialiasin_g</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment