Skip to content

Commit

Permalink
Update to match fyne develop styling
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jun 23, 2023
1 parent e912610 commit a12a4f5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module fyshos.com/fynedesk
go 1.17

require (
fyne.io/fyne/v2 v2.3.6-0.20230616050133-93998baf1426
fyne.io/fyne/v2 v2.3.6-0.20230623155050-630ec4ee2ce4
github.com/BurntSushi/freetype-go v0.0.0-20160129220410-b763ddbfe298 // indirect
github.com/BurntSushi/graphics-go v0.0.0-20160129215708-b43f31a4a966 // indirect
github.com/BurntSushi/xgb v0.0.0-20201008132610-5f9e7b3c49cd
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl
cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
fyne.io/fyne/v2 v2.3.6-0.20230616050133-93998baf1426 h1:/j6NrQM9umFz/nSnB9robs6HE101HNFgT5o8kGVqPSU=
fyne.io/fyne/v2 v2.3.6-0.20230616050133-93998baf1426/go.mod h1:EQjh0nU6ue4n00nirrk7OXrJlAFVFcCv6E+vCvXvUaw=
fyne.io/fyne/v2 v2.3.6-0.20230623155050-630ec4ee2ce4 h1:wZCi8O5KO0oqezek6Yrj4xx7ome1noNLs5WcmGXttAA=
fyne.io/fyne/v2 v2.3.6-0.20230623155050-630ec4ee2ce4/go.mod h1:EQjh0nU6ue4n00nirrk7OXrJlAFVFcCv6E+vCvXvUaw=
fyne.io/systray v1.10.1-0.20230602210930-b6a2d6ca2a7b h1:MP1cUnIdF1cxrMhK9iw9H0JP3zopyD1zi84BqU6WTsE=
fyne.io/systray v1.10.1-0.20230602210930-b6a2d6ca2a7b/go.mod h1:oM2AQqGJ1AMo4nNqZFYU8xYygSBZkW2hmdJ7n4yjedE=
github.com/BurntSushi/freetype-go v0.0.0-20160129220410-b763ddbfe298 h1:1qlsVAQJXZHsaM8b6OLVo6muQUQd4CwkH/D3fnnbHXA=
Expand Down
4 changes: 2 additions & 2 deletions theme/theme.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ var (
MuteIcon = theme.NewThemedResource(resourceMuteSvg)

// BorderWidth is the width of window frames
BorderWidth = float32(6)
BorderWidth = float32(4)
// ButtonWidth is the width of window buttons
ButtonWidth = float32(28)
ButtonWidth = float32(32)
// NarrowBarWidth is the size for the bars in narrow layout
NarrowBarWidth = float32(36)
// TitleHeight is the height of a frame titleBar
Expand Down
1 change: 1 addition & 0 deletions wm/button.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func newCloseButton(win fynedesk.Window) fyne.CanvasObject {
b.ExtendBaseWidget(b)
b.Importance = widget.LowImportance
b.bg = canvas.NewRectangle(color.Transparent)
b.bg.CornerRadius = theme.InputRadiusSize()

b.OnTapped = func() {
win.Close()
Expand Down

0 comments on commit a12a4f5

Please sign in to comment.