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

--- Comment #18 from Armin Le Grand (collabora) <[email protected]> ---
I thought about it and there is not really a need to get that settings from the
OutputDevice - that might have been cosy for the 'OutDevAge' but in principle
it has to be fetched from the config and set at the OutDev. Looked for that and
found in Window::Window:

    // adjust contrast mode initially
    bool bUseContrast = GetSettings().GetStyleSettings().GetHighContrastMode();
    GetOutDev()->SetDrawMode( bUseContrast
        ? sd::OUTPUT_DRAWMODE_CONTRAST
        : sd::OUTPUT_DRAWMODE_COLOR );

where

const DrawModeFlags OUTPUT_DRAWMODE_CONTRAST
        = DrawModeFlags::SettingsLine | DrawModeFlags::SettingsFill
        | DrawModeFlags::SettingsText | DrawModeFlags::SettingsGradient;

all flags are set anyways. Thus I can just evaluate what I need anytime, where
and when I need it. Trying that next...

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

Reply via email to