style

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package style provides custom application CSS as well as other styling utilities.

Index

Constants

View Source
const (
	ClassComicContainer = "comic-container"
	ClassLinked         = "linked"
	ClassNoMinWidth     = "no-min-width"
	ClassSlimButton     = "slim-button"

	ClassFixHiddenComicTitle        = "fix-hidden-comic-title"
	ClassFixJarringHeaderbarButtons = "fix-jarring-headerbar-buttons"
)
View Source
const (
	PaddingComicListButton   = 8
	PaddingPopover           = 10
	PaddingPopoverCompact    = 8
	PaddingAuxiliaryWindow   = 12
	PaddingUnlinkedButtonBox = 4
)

Variables

This section is empty.

Functions

func InitCSS added in v1.4.2

func InitCSS(darkMode bool) error

InitCSS initializes the application's custom CSS.

func IsCompactMenuTheme added in v1.6.0

func IsCompactMenuTheme(theme string) bool

IsCompactMenuTheme returns true if we should reduce the left and right margins of popover-style menus.

func IsFixHiddenComicTitleTheme added in v1.7.2

func IsFixHiddenComicTitleTheme(theme string) bool

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

func IsFixJarringHeaderbarButtonsTheme(theme string) bool

IsFixJarringHeaderbarButtonsTheme returns true if we should apply a fix for headerbar buttons that do not match the headerbar.

func IsLargeToolbarTheme

func IsLargeToolbarTheme(theme string) bool

IsLargeToolbarTheme returns true if we should use large toolbar buttons with the given theme.

func IsLinkedNavButtonsTheme added in v1.5.0

func IsLinkedNavButtonsTheme(theme string) bool

IsLinkedNavButtonsTheme returns true if we should visually "link" the buttons in the navigation button box for the given theme.

func IsSymbolicIconTheme

func IsSymbolicIconTheme(theme string, darkMode bool) bool

IsSymbolicIconTheme returns true if we should use symbolic icons with the given theme.

func UpdateCSS added in v1.4.2

func UpdateCSS(darkMode bool) error

UpdateCSS reloads the application CSS if darkMode does not match the currently loaded CSS.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL