mirror of
https://github.com/Apologieze/Benri.git
synced 2026-01-18 17:17:21 +01:00
fix rounded corner
This commit is contained in:
@@ -257,7 +257,7 @@ func initMainApp() {
|
||||
|
||||
playContainer := container.NewHBox(layout.NewSpacer(), button, layout.NewSpacer())
|
||||
|
||||
imageContainer := container.NewVBox(imageEx, animeName, episodeContainer, nextEpisodeLabel, episodeLastPlayback, layout.NewSpacer(), playContainer)
|
||||
imageContainer := container.NewVBox(imageEx, animeName, episodeContainer, nextEpisodeLabel, episodeLastPlayback, layout.NewSpacer(), canvas.NewText("FEUR", color.RGBA{255, 0, 0, 255}), playContainer)
|
||||
|
||||
listDisplay.OnSelected = func(id int) {
|
||||
listName, err := data.GetValue(id)
|
||||
|
||||
10
src/theme.go
10
src/theme.go
@@ -37,12 +37,16 @@ func (f *forcedVariant) Color(name fyne.ThemeColorName, _ fyne.ThemeVariant) col
|
||||
}
|
||||
|
||||
func (f *forcedVariant) Size(s fyne.ThemeSizeName) float32 {
|
||||
if s == theme.SizeNameSelectionRadius {
|
||||
switch s {
|
||||
case theme.SizeNameSelectionRadius:
|
||||
return 10
|
||||
} else if s == theme.SizeNameSeparatorThickness {
|
||||
case theme.SizeNameInputRadius:
|
||||
return 10
|
||||
case theme.SizeNameSeparatorThickness:
|
||||
return 2
|
||||
default:
|
||||
return f.Theme.Size(s)
|
||||
}
|
||||
return f.Theme.Size(s)
|
||||
}
|
||||
|
||||
/*func (f *forcedVariant) Font(style fyne.TextStyle) fyne.Resource {
|
||||
|
||||
Reference in New Issue
Block a user