15 Star 71 Fork 21

Gitee 极速下载/Fyne

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/fyne-io/fyne
克隆/下载
theme.go 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
package fyne
import "image/color"
// ThemeVariant indicates a variation of a theme, such as light or dark.
//
// Since: 2.0
type ThemeVariant uint
// ThemeColorName is used to look up a colour based on its name.
//
// Since: 2.0
type ThemeColorName string
// ThemeIconName is used to look up an icon based on its name.
//
// Since: 2.0
type ThemeIconName string
// ThemeSizeName is used to look up a size based on its name.
//
// Since: 2.0
type ThemeSizeName string
// Theme defines the method to look up colors, sizes and fonts that make up a Fyne theme.
//
// Since: 2.0
type Theme interface {
Color(ThemeColorName, ThemeVariant) color.Color
Font(TextStyle) Resource
Icon(ThemeIconName) Resource
Size(ThemeSizeName) float32
}
// LegacyTheme defines the requirements of any Fyne theme.
// This was previously called Theme and is kept for simpler transition of applications built before v2.0.0.
//
// Since: 2.0
type LegacyTheme interface {
BackgroundColor() color.Color
ButtonColor() color.Color
DisabledButtonColor() color.Color
TextColor() color.Color
DisabledTextColor() color.Color
PlaceHolderColor() color.Color
PrimaryColor() color.Color
HoverColor() color.Color
FocusColor() color.Color
ScrollBarColor() color.Color
ShadowColor() color.Color
TextSize() int
TextFont() Resource
TextBoldFont() Resource
TextItalicFont() Resource
TextBoldItalicFont() Resource
TextMonospaceFont() Resource
Padding() int
IconInlineSize() int
ScrollBarSize() int
ScrollBarSmallSize() int
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mirrors/Fyne.git
git@gitee.com:mirrors/Fyne.git
mirrors
Fyne
Fyne
master

搜索帮助