Documentation ¶
Overview ¶
Package style provides custom application CSS as well as other styling utilities.
Index ¶
- Constants
- func InitCSS(darkMode bool) error
- func IsCompactMenuTheme(theme string) bool
- func IsFixHiddenComicTitleTheme(theme string) bool
- func IsFixJarringHeaderbarButtonsTheme(theme string) bool
- func IsLargeToolbarTheme(theme string) bool
- func IsLinkedNavButtonsTheme(theme string) bool
- func IsSymbolicIconTheme(theme string, darkMode bool) bool
- func UpdateCSS(darkMode bool) error
Constants ¶
const ( ClassComicContainer = "comic-container" ClassLinked = "linked" ClassNoMinWidth = "no-min-width" ClassSlimButton = "slim-button" ClassFixHiddenComicTitle = "fix-hidden-comic-title" ClassFixJarringHeaderbarButtons = "fix-jarring-headerbar-buttons" )
const ( PaddingComicListButton = 8 PaddingPopover = 10 PaddingPopoverCompact = 8 PaddingAuxiliaryWindow = 12 PaddingUnlinkedButtonBox = 4 )
Variables ¶
This section is empty.
Functions ¶
func IsCompactMenuTheme ¶ added in v1.6.0
IsCompactMenuTheme returns true if we should reduce the left and right margins of popover-style menus.
func IsFixHiddenComicTitleTheme ¶ added in v1.7.2
IsFixHiddenComicTitleTheme returns true if we should apply a fix for invisible or hard to see headerbar window titles in the main comic window.
func IsFixJarringHeaderbarButtonsTheme ¶ added in v1.7.2
IsFixJarringHeaderbarButtonsTheme returns true if we should apply a fix for headerbar buttons that do not match the headerbar.
func IsLargeToolbarTheme ¶
IsLargeToolbarTheme returns true if we should use large toolbar buttons with the given theme.
func IsLinkedNavButtonsTheme ¶ added in v1.5.0
IsLinkedNavButtonsTheme returns true if we should visually "link" the buttons in the navigation button box for the given theme.
func IsSymbolicIconTheme ¶
IsSymbolicIconTheme returns true if we should use symbolic icons with the given theme.
Types ¶
This section is empty.