(s fyne.ThemeSizeName)
| 92 | } |
| 93 | |
| 94 | func (eTheme) Size(s fyne.ThemeSizeName) float32 { |
| 95 | switch s { |
| 96 | case theme.SizeNameCaptionText: |
| 97 | return 11 |
| 98 | case theme.SizeNameInlineIcon: |
| 99 | return 20 |
| 100 | case theme.SizeNamePadding: |
| 101 | return 4 |
| 102 | case theme.SizeNameScrollBar: |
| 103 | return 16 |
| 104 | case theme.SizeNameScrollBarSmall: |
| 105 | return 3 |
| 106 | case theme.SizeNameSeparatorThickness: |
| 107 | return 1 |
| 108 | case theme.SizeNameText: |
| 109 | return 15 |
| 110 | case theme.SizeNameInputBorder: |
| 111 | return 2 |
| 112 | case theme.SizeNameHeadingText: |
| 113 | return 24 |
| 114 | default: |
| 115 | return theme.DefaultTheme().Size(s) |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | type eTheme2 struct{} |
| 120 |
no outgoing calls
no test coverage detected