Classes | |
| struct | ButtonData |
Functions | |
| bool | IsEnabled () |
| bool | IsSupported () |
| bool | IsSystemMenuEnabled () |
| COLORREF | InvertLightness (COLORREF c) |
| COLORREF | InvertLightnessSofter (COLORREF c) |
| COLORREF | GetBackgroundColor () |
| COLORREF | GetSofterBackgroundColor () |
| COLORREF | GetTextColor () |
| COLORREF | GetHotTextColor () |
| COLORREF | GetSofterTextColor () |
| COLORREF | GetDarkerTextColor () |
| COLORREF | GetEdgeColor () |
| HBRUSH | GetBackgroundBrush () |
| HPEN | GetDarkerTextPen () |
| HPEN | GetEdgePen () |
| HBRUSH | GetSofterBackgroundBrush () |
| bool | OnSettingChange (HWND hwnd, LPARAM lParam) |
| bool | UAHWndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT *lr) |
| void | DrawUAHMenuNCBottomLine (HWND hWnd) |
| void | InitDarkMode (bool set_dark_mode, bool set_sys_menu) |
| void | SetDarkMode (bool dark_mode) |
| void | SetSystemMenuForApp (bool set_sys_menu) |
| void | AllowDarkModeForApp (bool allow) |
| bool | AllowDarkModeForWindow (HWND hWnd, bool allow) |
| void | RefreshTitleBarThemeColor (HWND hWnd) |
| void | EnableDarkScrollBarForWindowAndChildren (HWND hwnd) |
| void | SetDarkTitleBar (HWND hwnd) |
| void | SetDarkExplorerTheme (HWND hwnd) |
| void | SetDarkListView (HWND hwnd) |
| void | SetDarkListViewHeader (HWND hHeader) |
| int | scaled (HWND hwnd, int val) |
| void | renderButton (HWND hwnd, HDC hdc, HTHEME hTheme, int iPartID, int iStateID) |
| void | paintButton (HWND hwnd, HDC hdc, ButtonData &buttonData) |
| LRESULT CALLBACK | ButtonSubclass (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_PTR uIdSubclass, DWORD_PTR dwRefData) |
| void | subclassButtonControl (HWND hwnd) |
| void | AutoSubclassAndThemeChildControls (HWND hwndParent, bool subclass, bool theme) |
Variables | |
| constexpr UINT_PTR | g_buttonSubclassID = 42 |
| void NppDarkMode::AllowDarkModeForApp | ( | bool | allow | ) |
References AllowDarkModeForApp(), and IsSupported().
Referenced by AllowDarkModeForApp(), and SetDarkMode().
| bool NppDarkMode::AllowDarkModeForWindow | ( | HWND | hWnd, |
| bool | allow ) |
References IsSupported().
Referenced by SetDarkTitleBar().
| void NppDarkMode::AutoSubclassAndThemeChildControls | ( | HWND | hwndParent, |
| bool | subclass, | ||
| bool | theme ) |
References IsEnabled(), IsSupported(), L, subclassButtonControl(), and WINAPI_LAMBDA.
| LRESULT CALLBACK NppDarkMode::ButtonSubclass | ( | HWND | hWnd, |
| UINT | uMsg, | ||
| WPARAM | wParam, | ||
| LPARAM | lParam, | ||
| UINT_PTR | uIdSubclass, | ||
| DWORD_PTR | dwRefData ) |
References ButtonSubclass(), g_buttonSubclassID, IsEnabled(), and paintButton().
Referenced by ButtonSubclass(), and subclassButtonControl().
| void NppDarkMode::DrawUAHMenuNCBottomLine | ( | HWND | hWnd | ) |
References GetBackgroundBrush().
| void NppDarkMode::EnableDarkScrollBarForWindowAndChildren | ( | HWND | hwnd | ) |
References EnableDarkScrollBarForWindowAndChildren(), and IsSupported().
Referenced by EnableDarkScrollBarForWindowAndChildren().
| HBRUSH NppDarkMode::GetBackgroundBrush | ( | ) |
References GetBackgroundColor().
Referenced by DrawUAHMenuNCBottomLine(), and UAHWndProc().
| COLORREF NppDarkMode::GetBackgroundColor | ( | ) |
References IsEnabled().
Referenced by GetBackgroundBrush().
| COLORREF NppDarkMode::GetDarkerTextColor | ( | ) |
Referenced by GetDarkerTextPen().
| HPEN NppDarkMode::GetDarkerTextPen | ( | ) |
References GetDarkerTextColor().
| COLORREF NppDarkMode::GetEdgeColor | ( | ) |
Referenced by GetEdgePen().
| HPEN NppDarkMode::GetEdgePen | ( | ) |
References GetEdgeColor().
| COLORREF NppDarkMode::GetHotTextColor | ( | ) |
References IsEnabled().
| HBRUSH NppDarkMode::GetSofterBackgroundBrush | ( | ) |
References GetSofterBackgroundColor().
Referenced by UAHWndProc().
| COLORREF NppDarkMode::GetSofterBackgroundColor | ( | ) |
References IsEnabled().
Referenced by GetSofterBackgroundBrush(), and renderButton().
| COLORREF NppDarkMode::GetSofterTextColor | ( | ) |
References IsEnabled().
Referenced by renderButton().
| COLORREF NppDarkMode::GetTextColor | ( | ) |
References IsEnabled().
Referenced by UAHWndProc(), and Slic3r::GUI::GUI_App::UpdateDVCDarkUI().
| void NppDarkMode::InitDarkMode | ( | bool | set_dark_mode, |
| bool | set_sys_menu ) |
References g_SystemMenuEnabled, InitDarkMode(), and SetDarkMode().
Referenced by Slic3r::GUI::GUI_App::on_init_inner().
| COLORREF NppDarkMode::InvertLightness | ( | COLORREF | c | ) |
| COLORREF NppDarkMode::InvertLightnessSofter | ( | COLORREF | c | ) |
| bool NppDarkMode::IsEnabled | ( | ) |
References g_darkModeEnabled.
Referenced by AutoSubclassAndThemeChildControls(), ButtonSubclass(), GetBackgroundColor(), GetHotTextColor(), GetSofterBackgroundColor(), GetSofterTextColor(), GetTextColor(), SetDarkExplorerTheme(), SetDarkListView(), SetDarkListViewHeader(), SetDarkTitleBar(), and UAHWndProc().
| bool NppDarkMode::IsSupported | ( | ) |
References g_darkModeSupported.
Referenced by AllowDarkModeForApp(), AllowDarkModeForWindow(), AutoSubclassAndThemeChildControls(), EnableDarkScrollBarForWindowAndChildren(), RefreshTitleBarThemeColor(), SetDarkExplorerTheme(), SetDarkListView(), SetDarkListViewHeader(), SetDarkMode(), SetDarkTitleBar(), and SetSystemMenuForApp().
| bool NppDarkMode::IsSystemMenuEnabled | ( | ) |
References g_SystemMenuEnabled.
| bool NppDarkMode::OnSettingChange | ( | HWND | hwnd, |
| LPARAM | lParam ) |
References _ShouldAppsUseDarkMode, g_darkModeEnabled, IsColorSchemeChangeMessage(), IsHighContrast(), and RefreshTitleBarThemeColor().
| void NppDarkMode::paintButton | ( | HWND | hwnd, |
| HDC | hdc, | ||
| ButtonData & | buttonData ) |
References NppDarkMode::ButtonData::hTheme, NppDarkMode::ButtonData::iStateID, and renderButton().
Referenced by ButtonSubclass().
| void NppDarkMode::RefreshTitleBarThemeColor | ( | HWND | hWnd | ) |
References IsSupported(), and RefreshTitleBarThemeColor().
Referenced by OnSettingChange(), RefreshTitleBarThemeColor(), and SetDarkTitleBar().
| void NppDarkMode::renderButton | ( | HWND | hwnd, |
| HDC | hdc, | ||
| HTHEME | hTheme, | ||
| int | iPartID, | ||
| int | iStateID ) |
References GetSofterBackgroundColor(), and GetSofterTextColor().
Referenced by paintButton().
| int NppDarkMode::scaled | ( | HWND | hwnd, |
| int | val ) |
References _GetDpiForSystem, _GetDpiForWindow, and scale().
| void NppDarkMode::SetDarkExplorerTheme | ( | HWND | hwnd | ) |
References IsEnabled(), IsSupported(), and L.
Referenced by Slic3r::GUI::GUI_App::force_colors_update(), Slic3r::GUI::PreferencesDialog::set_dark_mode(), SetDarkTitleBar(), Slic3r::GUI::GUI_App::UpdateDlgDarkUI(), and Slic3r::GUI::GUI_App::UpdateFrameDarkUI().
| void NppDarkMode::SetDarkListView | ( | HWND | hwnd | ) |
References _AllowDarkModeForWindow, IsEnabled(), IsSupported(), and L.
| void NppDarkMode::SetDarkListViewHeader | ( | HWND | hHeader | ) |
References _AllowDarkModeForWindow, IsEnabled(), IsSupported(), and L.
Referenced by Slic3r::GUI::GUI_App::UpdateDVCDarkUI().
| void NppDarkMode::SetDarkMode | ( | bool | dark_mode | ) |
References _FlushMenuThemes, AllowDarkModeForApp(), FixDarkScrollBar(), g_darkModeEnabled, g_SystemMenuEnabled, and IsSupported().
Referenced by Slic3r::GUI::GUI_App::force_colors_update(), InitDarkMode(), and Slic3r::GUI::GUI_App::on_init_inner().
| void NppDarkMode::SetDarkTitleBar | ( | HWND | hwnd | ) |
References AllowDarkModeForWindow(), IsEnabled(), IsSupported(), RefreshTitleBarThemeColor(), and SetDarkExplorerTheme().
Referenced by Slic3r::GUI::GUI_App::force_colors_update(), Slic3r::GUI::PreferencesDialog::set_dark_mode(), Slic3r::GUI::GUI_App::UpdateDlgDarkUI(), and Slic3r::GUI::GUI_App::UpdateFrameDarkUI().
| void NppDarkMode::SetSystemMenuForApp | ( | bool | set_sys_menu | ) |
References g_SystemMenuEnabled, and IsSupported().
Referenced by Slic3r::GUI::GUI_App::on_init_inner().
| void NppDarkMode::subclassButtonControl | ( | HWND | hwnd | ) |
References ButtonSubclass(), and g_buttonSubclassID.
Referenced by AutoSubclassAndThemeChildControls().
| bool NppDarkMode::UAHWndProc | ( | HWND | hWnd, |
| UINT | message, | ||
| WPARAM | wParam, | ||
| LPARAM | lParam, | ||
| LRESULT * | lr ) |
References UAHDRAWMENUITEM::dis, GetBackgroundBrush(), GetSofterBackgroundBrush(), GetTextColor(), tagUAHMENU::hdc, tagUAHMENU::hmenu, tagUAHMENUITEM::iPosition, IsEnabled(), L, UAHDRAWMENUITEM::um, UAHDRAWMENUITEM::umi, WM_UAHDRAWMENU, and WM_UAHDRAWMENUITEM.
|
constexpr |
Referenced by ButtonSubclass(), and subclassButtonControl().