mytheme

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Gray = color.NRGBA{R: 0x51, G: 0x51, B: 0x51, A: 0x51}
View Source
var Red = color.NRGBA{R: 0xff, G: 0x33, B: 0x33, A: 0xff}
View Source
var ResourceLockSvg = &fyne.StaticResource{
	StaticName: "lock.svg",
	StaticContent: []byte(
		"<?xml version=\"1.0\" standalone=\"no\"?><!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"proxy://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"><svg t=\"1685145670683\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"proxy://www.w3.org/2000/svg\" p-id=\"9743\" width=\"200\" height=\"200\" xmlns:xlink=\"proxy://www.w3.org/1999/xlink\"><path d=\"M808.96 445.44H215.04c-33.792 0-61.44 27.648-61.44 61.44v368.64c0 33.792 27.648 61.44 61.44 61.44h593.92c33.792 0 61.44-27.648 61.44-61.44V506.88c0-33.792-27.648-61.44-61.44-61.44z m-296.96 421.376c-48.128 0-87.04-38.912-87.04-87.04 0-36.352 22.016-67.584 53.76-80.384v-132.096c0-18.432 14.848-33.28 33.28-33.28s33.28 14.848 33.28 33.28v132.096c31.744 13.312 53.76 44.032 53.76 80.384 0 48.128-38.912 87.04-87.04 87.04z\" p-id=\"9744\" fill=\"#515151\"></path><path d=\"M744.448 448.512h-66.56V318.976c0-91.648-74.24-165.888-165.888-165.888S346.112 227.84 346.112 318.976v129.536h-66.56V318.976C279.552 190.976 384 87.04 512 87.04s232.448 104.448 232.448 232.448v129.024z\" p-id=\"9745\" fill=\"#515151\"></path></svg>"),
}

View Source
var ResourceLoginSvg = &fyne.StaticResource{
	StaticName: "Login.svg",
	StaticContent: []byte(
		`<svg t="1685237187596" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="proxy://www.w3.org/2000/svg" p-id="10728" width="200" height="200"><path d="M819.2 952.32H307.2c-73.216 0-133.12-59.904-133.12-133.12v-130.048c0-16.896 13.824-30.72 30.72-30.72s30.72 13.824 30.72 30.72V819.2c0 39.424 32.256 71.68 71.68 71.68h512c39.424 0 71.68-32.256 71.68-71.68V204.8c0-39.424-32.256-71.68-71.68-71.68H307.2c-39.424 0-71.68 32.256-71.68 71.68v125.952c0 16.896-13.824 30.72-30.72 30.72s-30.72-13.824-30.72-30.72V204.8c0-73.216 59.904-133.12 133.12-133.12h512c73.216 0 133.12 59.904 133.12 133.12v614.4c0 73.216-59.904 133.12-133.12 133.12z" fill="#A32A1F" p-id="10729"></path><path d="M624.64 665.6c-7.68 0-15.872-3.072-21.504-9.216-11.776-11.776-11.776-31.232 0-43.52l101.376-101.376-101.376-101.376c-11.776-11.776-11.776-31.232 0-43.52 11.776-11.776 31.232-11.776 43.52 0l122.88 122.88c11.776 11.776 11.776 31.232 0 43.52l-122.88 122.88c-6.144 7.168-14.336 9.728-22.016 9.728z" fill="#E09527" p-id="10730"></path><path d="M721.92 542.72H102.4c-16.896 0-30.72-13.824-30.72-30.72s13.824-30.72 30.72-30.72h619.52c16.896 0 30.72 13.824 30.72 30.72s-13.824 30.72-30.72 30.72z" fill="#E09527" p-id="10731"></path></svg>`),
}

登录

View Source
var ResourceQQSvg = &fyne.StaticResource{
	StaticName: "QQ.svg",
	StaticContent: []byte(
		`<svg t="1685237706776" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="proxy://www.w3.org/2000/svg" p-id="41257" width="200" height="200"><path d="M173.056 947.712c0 41.984 73.728 76.288 164.352 76.288S501.76 989.696 501.76 947.712s-73.728-76.288-164.352-76.288-164.352 33.792-164.352 76.288zM521.728 947.712c0 41.984 73.728 76.288 164.352 76.288 91.136 0 164.352-34.304 164.352-76.288s-73.728-76.288-164.352-76.288c-90.624-0.512-164.352 33.792-164.352 76.288z" fill="#F5B824" p-id="41258"></path><path d="M878.08 506.88l-36.864-118.784C840.704 1.536 528.384 0 512 0c-16.896 0-328.704 1.536-328.704 388.096L145.92 506.88s-125.44 157.696-40.96 294.912c9.728 6.656 10.24 30.72 61.44-77.312 0 0 68.608 241.664 343.552 243.712h3.072c274.944-2.048 343.552-243.712 343.552-243.712 51.2 108.032 52.224 86.016 61.44 77.312 85.504-137.216-39.936-294.912-39.936-294.912z" fill="#121213" p-id="41259"></path><path d="M526.336 254.464c0 51.712 29.696 93.696 66.56 93.696s66.56-41.984 66.56-93.696c0-51.712-29.696-93.696-66.56-93.696-36.864 0.512-66.56 41.984-66.56 93.696zM355.328 254.464c0 51.712 29.696 93.696 66.56 93.696s66.56-41.984 66.56-93.696c0-51.712-29.696-93.696-66.56-93.696-36.352 0.512-66.56 41.984-66.56 93.696z" fill="#FFFFFF" p-id="41260"></path><path d="M414.72 254.464c0 22.016 12.8 40.448 28.672 40.448 15.872 0 28.672-17.92 28.672-40.448s-12.8-40.448-28.672-40.448c-15.872 0.512-28.672 18.432-28.672 40.448z" fill="#161616" p-id="41261"></path><path d="M781.312 466.944c-113.152 94.208-269.312 83.456-269.312 83.456s-156.672 10.752-269.312-83.456c0 0-107.52 484.864 269.312 484.864s269.312-484.864 269.312-484.864z" fill="#FAFAFB" p-id="41262"></path><path d="M840.704 388.096s-90.112 161.792-328.704 161.792-328.704-161.792-328.704-161.792C144.896 492.032 145.92 506.88 145.92 506.88c36.864 40.96 80.896 74.752 129.536 99.84-3.072 34.816-7.68 88.064-7.168 115.2 0.512 42.496 26.624 45.056 86.528 51.2 59.904 5.632 47.616-10.24 47.616-37.376V650.24c63.488 12.288 109.056 7.68 109.056 7.68s208.896 21.504 366.08-152.064c0.512 1.024 1.536-13.824-36.864-117.76z" fill="#D53118" p-id="41263"></path><path d="M687.616 407.552c-53.76-25.6-140.8-33.792-175.616-33.792s-121.856 8.192-175.616 33.792c-25.6 8.704-35.84 15.36-35.84 24.064 0 1.024 1.024 2.56 2.56 4.096 50.176 31.232 125.44 51.2 209.408 51.2s159.232-19.968 209.408-51.2c1.536-2.048 2.56-3.072 2.56-4.096-0.512-8.704-10.752-15.36-36.864-24.064z" fill="#F0B225" p-id="41264"></path></svg>`),
}

QQ

View Source
var ResourceQuickMarkSvg = &fyne.StaticResource{
	StaticName: "quickMark.svg",
	StaticContent: []byte(
		`<svg t="1685238950299" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="proxy://www.w3.org/2000/svg" p-id="45484" width="200" height="200"><path d="M96 64h342c17.673 0 32 14.327 32 32v342c0 17.673-14.327 32-32 32H96c-17.673 0-32-14.327-32-32V96c0-17.673 14.327-32 32-32z m40 64a8 8 0 0 0-8 8v262a8 8 0 0 0 8 8h262a8 8 0 0 0 8-8V136a8 8 0 0 0-8-8H136z m450-64h342c17.673 0 32 14.327 32 32v342c0 17.673-14.327 32-32 32H586c-17.673 0-32-14.327-32-32V96c0-17.673 14.327-32 32-32z m40 64a8 8 0 0 0-8 8v262a8 8 0 0 0 8 8h262a8 8 0 0 0 8-8V136a8 8 0 0 0-8-8H626zM96 554h342c17.673 0 32 14.327 32 32v342c0 17.673-14.327 32-32 32H96c-17.673 0-32-14.327-32-32V586c0-17.673 14.327-32 32-32z m40 64a8 8 0 0 0-8 8v262a8 8 0 0 0 8 8h262a8 8 0 0 0 8-8V626a8 8 0 0 0-8-8H136z m642 235v107h-96V853h96z m64 0h118v75c0 17.673-14.327 32-32 32h-86V853z m-160-64v-66h-64v237h-32c-17.673 0-32-14.327-32-32V586c0-17.673 14.327-32 32-32h246v173h64V554h32c17.673 0 32 14.327 32 32v203H682zM267 331c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64 35.346 0 64 28.654 64 64 0 35.346-28.654 64-64 64z m490 0c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64 35.346 0 64 28.654 64 64 0 35.346-28.654 64-64 64zM267 821c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64 35.346 0 64 28.654 64 64 0 35.346-28.654 64-64 64z" fill="#D8D8D8" p-id="45485"></path></svg>`),
}

二维码

Functions

func InitFont

func InitFont(font MyFont)

Types

type MyFont

type MyFont string
const (
	STKAITI  MyFont = "STKAITI.TTF" // 正楷
	Deng     MyFont = "Deng.ttf"    // 隶书
	Dengb    MyFont = "Dengb.ttf"
	STXIHEI  MyFont = "STXIHEI.TTF"
	STFANGSO MyFont = "STFANGSO.TTF"
	Dengl    MyFont = "Dengl.ttf"
	STSONG   MyFont = "STSONG.TTF"
	STZHONGS MyFont = "STZHONGS.TTF"

	FZSTK MyFont = "FZSTK.TTF" // 草书
)

type MyTheme

type MyTheme struct {
	BackgroundColor color.Color // 背景色
	HyperlinkColor  color.Color // Hyperlink
}

func NewMyTheme

func NewMyTheme(BackgroundColor color.Color, HyperlinkColor color.Color) *MyTheme

func (MyTheme) Color

func (m MyTheme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color

func (MyTheme) Font

func (m MyTheme) Font(style fyne.TextStyle) fyne.Resource

func (MyTheme) Icon

func (m MyTheme) Icon(name fyne.ThemeIconName) fyne.Resource

func (MyTheme) Size

func (m MyTheme) Size(name fyne.ThemeSizeName) float32

Jump to

Keyboard shortcuts

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