Skip to content

Commit

Permalink
Move to the selection radius for the two items that were not really i…
Browse files Browse the repository at this point in the history
…nputs
  • Loading branch information
andydotxyz committed Jul 31, 2023
1 parent 5b799c8 commit e374b89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/fyne_settings/settings/appearance.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func newColorButton(n string, c color.Color, s *Settings) *colorButton {

func (c *colorButton) CreateRenderer() fyne.WidgetRenderer {
r := canvas.NewRectangle(c.color)
r.CornerRadius = theme.InputRadiusSize()
r.CornerRadius = theme.SelectionRadiusSize()
r.StrokeWidth = 5

if c.name == c.s.fyneSettings.PrimaryColor {
Expand Down Expand Up @@ -250,7 +250,7 @@ func (c *colorRenderer) Refresh() {
c.rect.StrokeColor = color.Transparent
}
c.rect.FillColor = c.c.color
c.rect.CornerRadius = theme.InputRadiusSize()
c.rect.CornerRadius = theme.SelectionRadiusSize()

c.rect.Refresh()
}
Expand Down
4 changes: 2 additions & 2 deletions dialog/fileitem.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (i *fileDialogItem) Tapped(_ *fyne.PointEvent) {

func (i *fileDialogItem) CreateRenderer() fyne.WidgetRenderer {
background := canvas.NewRectangle(nil)
background.CornerRadius = theme.InputRadiusSize()
background.CornerRadius = theme.SelectionRadiusSize()
text := widget.NewLabelWithStyle(i.name, fyne.TextAlignCenter, fyne.TextStyle{})
text.Wrapping = fyne.TextTruncate
icon := widget.NewFileIcon(i.location)
Expand Down Expand Up @@ -135,7 +135,7 @@ func (s fileItemRenderer) Refresh() {
s.background.FillColor = nil
}

s.background.CornerRadius = theme.InputRadiusSize()
s.background.CornerRadius = theme.SelectionRadiusSize()

s.background.Refresh()
canvas.Refresh(s.item)
Expand Down

0 comments on commit e374b89

Please sign in to comment.