Skip to content

Commit f20468b

Browse files
committed
linter: fix suggestions
1 parent 3f7f949 commit f20468b

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

internal/icon/themed_resource.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/ui/app.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (a *app) makeCancelHeaderButton() fyne.CanvasObject {
248248

249249
// headingText returns a text formatted as heading
250250
func headingText(text string) *canvas.Text {
251-
t := canvas.NewText(text, theme.ForegroundColor())
251+
t := canvas.NewText(text, theme.Color(theme.ColorNameForeground))
252252
t.TextStyle = fyne.TextStyle{Bold: true}
253253
t.TextSize = theme.TextSubHeadingSize()
254254
return t
@@ -281,7 +281,7 @@ func checkStatusNotifierWatcher() error {
281281
}
282282
conn, err := dbus.ConnectSessionBus()
283283
if err != nil {
284-
return fmt.Errorf("Failed to connect to session bus: %w", err)
284+
return fmt.Errorf("failed to connect to session bus: %w", err)
285285
}
286286
defer conn.Close()
287287

internal/ui/item_fyne.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func NewFyneItemWidget(item paw.Item, preferences *paw.Preferences) FyneItemWidg
6161
}
6262

6363
func titleRow(icon fyne.Resource, text string) []fyne.CanvasObject {
64-
t := canvas.NewText(text, theme.ForegroundColor())
64+
t := canvas.NewText(text, theme.Color(theme.ColorNameForeground))
6565
t.TextStyle = fyne.TextStyle{Bold: true}
6666
t.TextSize = theme.TextHeadingSize()
6767
i := canvas.NewImageFromResource(icon)
@@ -112,7 +112,6 @@ func makeActionMenu(menuItems []*fyne.MenuItem, w fyne.Window) fyne.CanvasObject
112112
}
113113

114114
func rowWithAction(label string, text string, opts rowActionOptions, w fyne.Window) []fyne.CanvasObject {
115-
116115
actionMenu := []*fyne.MenuItem{}
117116

118117
if opts.copy {

0 commit comments

Comments
 (0)