-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
size_test.go
30 lines (23 loc) · 948 Bytes
/
size_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package theme_test
import (
"testing"
"github.com/stretchr/testify/assert"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/theme"
)
func Test_IconInlineSize(t *testing.T) {
fyne.CurrentApp().Settings().SetTheme(theme.DarkTheme())
assert.Equal(t, theme.DarkTheme().Size(theme.SizeNameInlineIcon), theme.IconInlineSize(), "wrong inline icon size")
}
func Test_Padding(t *testing.T) {
fyne.CurrentApp().Settings().SetTheme(theme.DarkTheme())
assert.Equal(t, theme.DarkTheme().Size(theme.SizeNamePadding), theme.Padding(), "wrong padding")
}
func Test_ScrollBarSize(t *testing.T) {
fyne.CurrentApp().Settings().SetTheme(theme.DarkTheme())
assert.Equal(t, theme.DarkTheme().Size(theme.SizeNameScrollBar), theme.ScrollBarSize(), "wrong inline icon size")
}
func Test_TextSize(t *testing.T) {
fyne.CurrentApp().Settings().SetTheme(theme.DarkTheme())
assert.Equal(t, theme.DarkTheme().Size(theme.SizeNameText), theme.TextSize(), "wrong text size")
}