cui/source/customize/cfgutil.cxx       |    4 ++--
 cui/source/inc/cfgutil.hxx             |    2 +-
 cui/uiconfig/ui/macroselectordialog.ui |   32 +++++++++++++++++---------------
 3 files changed, 20 insertions(+), 18 deletions(-)

New commits:
commit 934a325874388734bd872b46e1a8fa567b744c5f
Author:     Parth Raiyani <[email protected]>
AuthorDate: Fri Feb 6 17:13:36 2026 +0530
Commit:     Caolán McNamara <[email protected]>
CommitDate: Mon Feb 9 09:25:56 2026 +0100

    a11y: change from description frame to description box and update UI layout
    
    Signed-off-by: Parth Raiyani <[email protected]>
    Change-Id: I415cbde293958b9a7724e394d1d8f63e7dd75159
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198834
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Caolán McNamara <[email protected]>

diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx
index 5b1a9c9ced70..762ee1917543 100644
--- a/cui/source/customize/cfgutil.cxx
+++ b/cui/source/customize/cfgutil.cxx
@@ -1158,7 +1158,7 @@ SvxScriptSelectorDialog::SvxScriptSelectorDialog(
     , m_xOKButton(m_xBuilder->weld_button(u"ok"_ustr))
     , m_xCancelButton(m_xBuilder->weld_button(u"cancel"_ustr))
     , m_xDescriptionText(m_xBuilder->weld_text_view(u"description"_ustr))
-    , m_xDescriptionFrame(m_xBuilder->weld_frame(u"descriptionframe"_ustr))
+    , m_xDescriptionBox(m_xBuilder->weld_box(u"descriptionbox"_ustr))
 {
     m_xCancelButton->show();
     m_xDialogDescription->show();
@@ -1200,7 +1200,7 @@ SvxScriptSelectorDialog::SvxScriptSelectorDialog(
     UpdateUI();
 
     if (comphelper::LibreOfficeKit::isActive())
-        m_xDescriptionFrame->hide();
+        m_xDescriptionBox->hide();
 }
 
 SvxScriptSelectorDialog::~SvxScriptSelectorDialog()
diff --git a/cui/source/inc/cfgutil.hxx b/cui/source/inc/cfgutil.hxx
index ce409c98e72d..56e877f57602 100644
--- a/cui/source/inc/cfgutil.hxx
+++ b/cui/source/inc/cfgutil.hxx
@@ -247,7 +247,7 @@ class SvxScriptSelectorDialog : public 
weld::GenericDialogController
     std::unique_ptr<weld::Button> m_xOKButton;
     std::unique_ptr<weld::Button> m_xCancelButton;
     std::unique_ptr<weld::TextView> m_xDescriptionText;
-    std::unique_ptr<weld::Frame> m_xDescriptionFrame;
+    std::unique_ptr<weld::Box> m_xDescriptionBox;
 
     DECL_LINK(ClickHdl, weld::Button&, void);
     DECL_LINK(SelectHdl, weld::TreeView&, void);
diff --git a/cui/uiconfig/ui/macroselectordialog.ui 
b/cui/uiconfig/ui/macroselectordialog.ui
index 329c25940912..662d185ee716 100644
--- a/cui/uiconfig/ui/macroselectordialog.ui
+++ b/cui/uiconfig/ui/macroselectordialog.ui
@@ -248,15 +248,29 @@
               </packing>
             </child>
             <child>
-              <object class="GtkFrame" id="descriptionframe">
+              <object class="GtkBox" id="descriptionbox">
                 <property name="visible">True</property>
                 <property name="can-focus">False</property>
                 <property name="margin-start">6</property>
                 <property name="margin-end">6</property>
                 <property name="margin-top">6</property>
                 <property name="margin-bottom">6</property>
-                <property name="label-xalign">0</property>
-                <property name="shadow-type">none</property>
+                <property name="orientation">vertical</property>
+                <property name="spacing">6</property>
+                <child>
+                  <object class="GtkLabel" id="label1">
+                    <property name="visible">True</property>
+                    <property name="can-focus">False</property>
+                    <property name="margin-bottom">6</property>
+                    <property name="label" translatable="yes" 
context="macroselectordialog|label1">_Description</property>
+                    <property name="use-underline">True</property>
+                    <property name="mnemonic-widget">description</property>
+                    <property name="xalign">0</property>
+                    <attributes>
+                      <attribute name="weight" value="bold"/>
+                    </attributes>
+                  </object>
+                </child>
                 <child>
                   <object class="GtkScrolledWindow" id="scrolledwindow1">
                     <property name="height-request">100</property>
@@ -273,18 +287,6 @@
                     </child>
                   </object>
                 </child>
-                <child type="label">
-                  <object class="GtkLabel" id="label1">
-                    <property name="visible">True</property>
-                    <property name="can-focus">False</property>
-                    <property name="margin-bottom">6</property>
-                    <property name="label" translatable="yes" 
context="macroselectordialog|label1">_Description</property>
-                    <property name="use-underline">True</property>
-                    <attributes>
-                      <attribute name="weight" value="bold"/>
-                    </attributes>
-                  </object>
-                </child>
               </object>
               <packing>
                 <property name="expand">False</property>

Reply via email to