Added a whole bunch of new icons
This commit is contained in:
parent
e9dff8ad07
commit
9f70804420
Binary file not shown.
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.6 KiB |
@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import "git.tebibyte.media/sashakoshka/tomo"
|
||||
import "git.tebibyte.media/sashakoshka/tomo/theme"
|
||||
import "git.tebibyte.media/sashakoshka/tomo/layouts"
|
||||
import "git.tebibyte.media/sashakoshka/tomo/elements"
|
||||
import _ "git.tebibyte.media/sashakoshka/tomo/backends/all"
|
||||
@ -20,12 +19,13 @@ func run () {
|
||||
|
||||
container.Adopt(elements.NewLabel("Just some of the wonderful icons we have:", false), false)
|
||||
container.Adopt(elements.NewSpacer(true), false)
|
||||
container.Adopt(icons(theme.IconHome, theme.IconRepositories), true)
|
||||
container.Adopt(icons(theme.IconFile, theme.IconCD), true)
|
||||
container.Adopt(icons(theme.IconOpen, theme.IconRemoveBookmark), true)
|
||||
container.Adopt(icons(tomo.IconHome, tomo.IconHistory), true)
|
||||
container.Adopt(icons(tomo.IconFile, tomo.IconNetwork), true)
|
||||
container.Adopt(icons(tomo.IconOpen, tomo.IconRemoveFavorite), true)
|
||||
container.Adopt(icons(tomo.IconCursor, tomo.IconDistort), true)
|
||||
|
||||
closeButton := elements.NewButton("Ok")
|
||||
closeButton.SetIcon(theme.IconYes)
|
||||
closeButton.SetIcon(tomo.IconYes)
|
||||
closeButton.ShowText(false)
|
||||
closeButton.OnClick(tomo.Stop)
|
||||
container.Adopt(closeButton, false)
|
||||
@ -34,10 +34,10 @@ func run () {
|
||||
window.Show()
|
||||
}
|
||||
|
||||
func icons (min, max theme.Icon) (container *containers.Container) {
|
||||
func icons (min, max tomo.Icon) (container *containers.Container) {
|
||||
container = containers.NewContainer(layouts.Horizontal { true, false })
|
||||
for index := min; index <= max; index ++ {
|
||||
container.Adopt(elements.NewIcon(index, theme.IconSizeSmall), true)
|
||||
container.Adopt(elements.NewIcon(index, tomo.IconSizeSmall), true)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
48
theme.go
48
theme.go
@ -104,7 +104,8 @@ const (
|
||||
IconLibraries
|
||||
IconDownloads
|
||||
IconRepositories
|
||||
IconSettings)
|
||||
IconSettings
|
||||
IconHistory)
|
||||
|
||||
const (
|
||||
// Object icons
|
||||
@ -191,12 +192,29 @@ const (
|
||||
IconBackward
|
||||
IconForward
|
||||
IconRefresh
|
||||
IconHistory
|
||||
IconUpward
|
||||
|
||||
IconYes
|
||||
IconNo
|
||||
|
||||
IconUpward)
|
||||
IconUndo
|
||||
IconRedo
|
||||
|
||||
IconRun
|
||||
IconSearch
|
||||
|
||||
IconClose
|
||||
IconQuit
|
||||
IconIconify
|
||||
IconShade
|
||||
IconMaximize
|
||||
IconRestore
|
||||
|
||||
IconReplace
|
||||
IconUnite
|
||||
IconDiffer
|
||||
IconInvert
|
||||
IconIntersect)
|
||||
|
||||
const (
|
||||
// Status icons
|
||||
@ -207,7 +225,29 @@ const (
|
||||
|
||||
const (
|
||||
// Tool icons
|
||||
)
|
||||
IconCursor Icon = iota + 0x200
|
||||
IconMeasure
|
||||
|
||||
IconSelect
|
||||
IconSelectRectangle
|
||||
IconSelectEllipse
|
||||
IconSelectGeometric
|
||||
IconSelectFreeform
|
||||
IconSelectLasso
|
||||
IconSelectFuzzy
|
||||
|
||||
IconTransform
|
||||
IconTranslate
|
||||
IconRotate
|
||||
IconScale
|
||||
IconWarp
|
||||
IconDistort
|
||||
|
||||
IconPencil
|
||||
IconBrush
|
||||
IconEraser
|
||||
IconFill
|
||||
IconText)
|
||||
|
||||
// Hints specifies rendering hints for a particular pattern. Elements can take
|
||||
// these into account in order to gain extra performance.
|
||||
|
BIN
xcf/large.xcf
BIN
xcf/large.xcf
Binary file not shown.
BIN
xcf/small.xcf
BIN
xcf/small.xcf
Binary file not shown.
Reference in New Issue
Block a user