Documentation ¶
Index ¶
- Constants
- func EnableTranslucency(hwnd uintptr, backdrop BackdropType)
- func IsCurrentlyDarkMode() bool
- func IsCurrentlyHighContrastMode() bool
- func SetBorderColour(hwnd uintptr, titleBorderColour int32)
- func SetTheme(hwnd uintptr, useDarkMode bool)
- func SetTitleBarColour(hwnd uintptr, titleBarColour int32)
- func SetTitleTextColour(hwnd uintptr, titleTextColour int32)
- func SupportsBackdropTypes() bool
- func SupportsCustomThemes() bool
- func SupportsImmersiveDarkMode() bool
- func SupportsThemes() bool
- type BackdropType
- type DWMWINDOWATTRIBUTE
Constants ¶
View Source
const HCF_HIGHCONTRASTON = 0x00000001
View Source
const SPI_GETHIGHCONTRAST = 0x0042
Variables ¶
This section is empty.
Functions ¶
func EnableTranslucency ¶
func EnableTranslucency(hwnd uintptr, backdrop BackdropType)
func IsCurrentlyDarkMode ¶
func IsCurrentlyDarkMode() bool
func IsCurrentlyHighContrastMode ¶
func IsCurrentlyHighContrastMode() bool
func SetBorderColour ¶
func SetTitleBarColour ¶
func SetTitleTextColour ¶
func SupportsBackdropTypes ¶
func SupportsBackdropTypes() bool
func SupportsCustomThemes ¶
func SupportsCustomThemes() bool
func SupportsImmersiveDarkMode ¶
func SupportsImmersiveDarkMode() bool
func SupportsThemes ¶
func SupportsThemes() bool
Types ¶
type BackdropType ¶
type BackdropType int32
BackdropType defines the type of translucency we wish to use
type DWMWINDOWATTRIBUTE ¶
type DWMWINDOWATTRIBUTE int32
const DwmwaBorderColor DWMWINDOWATTRIBUTE = 34
const DwmwaCaptionColor DWMWINDOWATTRIBUTE = 35
const DwmwaSystemBackdropType DWMWINDOWATTRIBUTE = 38
const DwmwaTextColor DWMWINDOWATTRIBUTE = 36
const DwmwaUseImmersiveDarkMode DWMWINDOWATTRIBUTE = 20
const DwmwaUseImmersiveDarkModeBefore20h1 DWMWINDOWATTRIBUTE = 19
Click to show internal directories.
Click to hide internal directories.