cui/source/inc/chardlg.hxx      |    2 ++
 cui/source/tabpages/chardlg.cxx |    5 +++++
 cui/uiconfig/ui/effectspage.ui  |   39 ++++++++++++++++++++++++++++-----------
 3 files changed, 35 insertions(+), 11 deletions(-)

New commits:
commit 90018d327e9a41085585519a704f9fa07953cbf3
Author: Caolán McNamara <caol...@redhat.com>
Date:   Tue Jun 14 21:31:21 2016 +0100

    Related: tdf#90480 explain in the font color dialog why colors aren't 
used...
    
    if the a11y option "Use automatic font color for screen display" is active.
    
    I guess we could go to town and have a button to zoom to that option or to
    directly disable it, but I've never encountered this problem before so 
surely
    it isn't that common that we need to immediately do that.
    
    Change-Id: Id19cac56591829f5644a8ac66c3d873c77e152f8

diff --git a/cui/source/inc/chardlg.hxx b/cui/source/inc/chardlg.hxx
index 5b115c1..0f94ede 100644
--- a/cui/source/inc/chardlg.hxx
+++ b/cui/source/inc/chardlg.hxx
@@ -207,6 +207,8 @@ private:
     VclPtr<FixedText>          m_pPositionFT;
     VclPtr<ListBox>            m_pPositionLB;
 
+    VclPtr<FixedText>          m_pA11yWarningFT;
+
     sal_uInt16          m_nHtmlMode;
 
     OUString            m_aTransparentColorName;
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index 1edfee5..3ee76c5 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -66,6 +66,7 @@
 #include <svl/stritem.hxx>
 #include <editeng/charscaleitem.hxx>
 #include <editeng/charrotateitem.hxx>
+#include <officecfg/Office/Common.hxx>
 #include <svx/svxdlg.hxx>
 #include <cuires.hrc>
 #include <svl/intitem.hxx>
@@ -1371,6 +1372,7 @@ SvxCharEffectsPage::SvxCharEffectsPage( vcl::Window* 
pParent, const SfxItemSet&
     get(m_pEmphasisLB, "emphasislb");
     get(m_pPositionFT, "positionft");
     get(m_pPositionLB, "positionlb");
+    get(m_pA11yWarningFT, "a11ywarning");
 
     get(m_pPreviewWin, "preview");
     Initialize();
@@ -1405,6 +1407,7 @@ void SvxCharEffectsPage::dispose()
     m_pEmphasisLB.clear();
     m_pPositionFT.clear();
     m_pPositionLB.clear();
+    m_pA11yWarningFT.clear();
     SvxCharBasePage::dispose();
 }
 
@@ -1507,6 +1510,8 @@ void SvxCharEffectsPage::Initialize()
         m_pPositionFT->Hide();
         m_pPositionLB->Hide();
     }
+
+    
m_pA11yWarningFT->Show(officecfg::Office::Common::Accessibility::IsAutomaticFontColor::get());
 }
 
 void SvxCharEffectsPage::UpdatePreview_Impl()
diff --git a/cui/uiconfig/ui/effectspage.ui b/cui/uiconfig/ui/effectspage.ui
index 62fd90f..ae64cf0 100644
--- a/cui/uiconfig/ui/effectspage.ui
+++ b/cui/uiconfig/ui/effectspage.ui
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.18.3 -->
+<!-- Generated with glade 3.20.0 -->
 <interface>
   <requires lib="gtk+" version="3.0"/>
   <requires lib="LibreOffice" version="1.0"/>
@@ -215,8 +215,8 @@
           <object class="GtkLabel" id="fontcolorft">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="xalign">0</property>
             <property name="label" translatable="yes">Font color:</property>
+            <property name="xalign">0</property>
           </object>
           <packing>
             <property name="left_attach">0</property>
@@ -227,8 +227,8 @@
           <object class="GtkLabel" id="effectsft">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="xalign">0</property>
             <property name="label" translatable="yes">Effects:</property>
+            <property name="xalign">0</property>
           </object>
           <packing>
             <property name="left_attach">0</property>
@@ -239,8 +239,8 @@
           <object class="GtkLabel" id="reliefft">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="xalign">0</property>
             <property name="label" translatable="yes">Relief:</property>
+            <property name="xalign">0</property>
           </object>
           <packing>
             <property name="left_attach">0</property>
@@ -251,8 +251,8 @@
           <object class="GtkLabel" id="label46">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="xalign">0</property>
             <property name="label" translatable="yes">Overlining:</property>
+            <property name="xalign">0</property>
           </object>
           <packing>
             <property name="left_attach">2</property>
@@ -263,8 +263,8 @@
           <object class="GtkLabel" id="label47">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="xalign">0</property>
             <property name="label" translatable="yes">Strikethrough:</property>
+            <property name="xalign">0</property>
           </object>
           <packing>
             <property name="left_attach">2</property>
@@ -275,8 +275,8 @@
           <object class="GtkLabel" id="label48">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="xalign">0</property>
             <property name="label" translatable="yes">Underlining:</property>
+            <property name="xalign">0</property>
           </object>
           <packing>
             <property name="left_attach">2</property>
@@ -287,8 +287,8 @@
           <object class="GtkLabel" id="overlinecolorft">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="xalign">0</property>
             <property name="label" translatable="yes">Overline 
color:</property>
+            <property name="xalign">0</property>
           </object>
           <packing>
             <property name="left_attach">3</property>
@@ -299,8 +299,8 @@
           <object class="GtkLabel" id="underlinecolorft">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="xalign">0</property>
             <property name="label" translatable="yes">Underline 
color:</property>
+            <property name="xalign">0</property>
           </object>
           <packing>
             <property name="left_attach">3</property>
@@ -477,8 +477,8 @@
           <object class="GtkLabel" id="positionft">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="xalign">0</property>
             <property name="label" translatable="yes">Position:</property>
+            <property name="xalign">0</property>
           </object>
           <packing>
             <property name="left_attach">3</property>
@@ -489,8 +489,8 @@
           <object class="GtkLabel" id="emphasisft">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="xalign">0</property>
             <property name="label" translatable="yes">Emphasis mark:</property>
+            <property name="xalign">0</property>
           </object>
           <packing>
             <property name="left_attach">2</property>
@@ -537,6 +537,23 @@
           </packing>
         </child>
         <child>
+          <object class="GtkLabel" id="a11ywarning">
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">Accessibility option 
"Use automatic font color for screen display" is active. Font color attributes 
are not currently used to display text.</property>
+            <property name="wrap">True</property>
+            <property name="max_width_chars">50</property>
+            <property name="xalign">0</property>
+            <attributes>
+              <attribute name="weight" value="bold"/>
+            </attributes>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">10</property>
+            <property name="width">5</property>
+          </packing>
+        </child>
+        <child>
           <placeholder/>
         </child>
         <child>
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to