sc/source/ui/view/tabvwsh3.cxx             |    3 ++-
 sc/uiconfig/scalc/ui/notebookbar_online.ui |   23 +++++++++++++++++++++++
 solenv/sanitizers/ui/modules/scalc.suppr   |    1 +
 3 files changed, 26 insertions(+), 1 deletion(-)

New commits:
commit 0f297867a13d2c9b7b28c16ed92ce67b38297cea
Author:     Banobe Pascal <[email protected]>
AuthorDate: Wed Feb 4 02:26:04 2026 +0300
Commit:     Szymon Kłos <[email protected]>
CommitDate: Tue Feb 17 11:40:34 2026 +0100

    sc: Add a Notebookbar widget for theme colors in Calc
    
    Signed-off-by: Banobe Pascal <[email protected]>
    Change-Id: Iffe19b10ad9a1614685e73e8596ecc5d9571a196
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198631
    Reviewed-by: Samuel Mehrbrodt <[email protected]>
    Reviewed-by: Szymon Kłos <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/sc/source/ui/view/tabvwsh3.cxx b/sc/source/ui/view/tabvwsh3.cxx
index d1682ec6ddaf..1c7eb2cffe3d 100644
--- a/sc/source/ui/view/tabvwsh3.cxx
+++ b/sc/source/ui/view/tabvwsh3.cxx
@@ -1613,7 +1613,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
             // Open ThemeColorEditDialog to create/edit the new color set
             auto pSubDialog = 
std::make_shared<svx::ThemeColorEditDialog>(GetFrameWeld(), *pCurrentColorSet);
 
-            weld::DialogController::runAsync(pSubDialog, 
[pSubDialog](sal_uInt32 nResult) {
+            weld::DialogController::runAsync(pSubDialog, [pSubDialog, 
this](sal_uInt32 nResult) {
                 if (nResult != RET_OK)
                     return;
 
@@ -1622,6 +1622,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
                 {
                     // Add the new color set to the global collection with 
auto-rename if needed
                     svx::ColorSets::get().insert(aColorSet, 
svx::ColorSets::IdenticalNameAction::AutoRename);
+                    GetViewFrame().GetBindings().Invalidate(SID_ADD_THEME);
                 }
             });
 
diff --git a/sc/uiconfig/scalc/ui/notebookbar_online.ui 
b/sc/uiconfig/scalc/ui/notebookbar_online.ui
index ccabe97190c4..18d376ff6ac3 100644
--- a/sc/uiconfig/scalc/ui/notebookbar_online.ui
+++ b/sc/uiconfig/scalc/ui/notebookbar_online.ui
@@ -146,6 +146,29 @@
             <property name="position">3</property>
           </packing>
         </child>
+        <child>
+          <object class="sfxlo-NotebookbarToolBox" id="theme_colors_pane">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_start">5</property>
+            <child>
+              <object class="GtkToolButton" id="Theme-ThemeColorsPane">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="action_name">.uno:ThemeSelectorPanel</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="homogeneous">True</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">4</property>
+          </packing>
+        </child>
       </object>
       <packing>
         <property name="left_attach">0</property>
diff --git a/solenv/sanitizers/ui/modules/scalc.suppr 
b/solenv/sanitizers/ui/modules/scalc.suppr
index bdc95e795200..840f926378ed 100644
--- a/solenv/sanitizers/ui/modules/scalc.suppr
+++ b/solenv/sanitizers/ui/modules/scalc.suppr
@@ -68,6 +68,7 @@ 
sc/uiconfig/scalc/ui/notebookbar_groups.ui://GtkLabel[@id='formatgrouplabel'] or
 sc/uiconfig/scalc/ui/notebookbar_groups.ui://GtkLabel[@id='tablegrouplabel'] 
orphan-label
 sc/uiconfig/scalc/ui/notebookbar_groups.ui://GtkLabel[@id='insertgrouplabel'] 
orphan-label
 sc/uiconfig/scalc/ui/notebookbar_groups.ui://GtkLabel[@id='imagegrouplabel'] 
orphan-label
+sc/uiconfig/scalc/ui/notebookbar_online.ui://GtkToolButton[@id='Theme-ThemeColorsPane']
 button-no-label
 sc/uiconfig/scalc/ui/managenamesdialog.ui://GtkLabel[@id='info'] orphan-label
 sc/uiconfig/scalc/ui/managenamesdialog.ui://GtkLabel[@id='label2'] orphan-label
 sc/uiconfig/scalc/ui/mergecellsdialog.ui://GtkLabel[@id='label'] orphan-label

Reply via email to