https://bugs.documentfoundation.org/show_bug.cgi?id=160349

Justin L <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|24.8.0.0 alpha0+ Master     |Inherited From OOo

--- Comment #5 from Justin L <[email protected]> ---
There appears to be an existing uno command to do this.
    .uno:ChangeTheme  (FN_CHANGE_THEME)
and is often used in unit tests.

sfx/sdi/sfx.sdi would need
AccelConfig = TRUE,  // keyboard shortcuts IIUC
MenuConfig = TRUE,   // Menu entry
ToolBoxConfig = TRUE // can be added to toolbar

and probably Toggle = TRUE as well as ReadOnlyDoc = TRUE

FN_CHANGE_THEME already knows the GetCurrentSchemeName (maybe), and if it is
auto (system), then MiscSettings::GetUseDarkMode() might indicate if the OS is
asking for dark mode.

MiscSettings::GetDarkMode() returns 0(system) 1(light) or 2(dark)
from officecfg::Office::Common::Misc::Appearance
and MiscSettings::SetDarkMode(0/1/2) triggers a redraw to the new mode.

The options page managing the AppearanceStyle is cui/source/options/optdlg.cxx.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to