| 185 | } |
| 186 | |
| 187 | func (eTheme2) Size(s fyne.ThemeSizeName) float32 { |
| 188 | switch s { |
| 189 | case theme.SizeNameCaptionText: |
| 190 | return 11 |
| 191 | case theme.SizeNameInlineIcon: |
| 192 | return 20 |
| 193 | case theme.SizeNamePadding: |
| 194 | return 4 |
| 195 | case theme.SizeNameScrollBar: |
| 196 | return 16 |
| 197 | case theme.SizeNameScrollBarSmall: |
| 198 | return 3 |
| 199 | case theme.SizeNameSeparatorThickness: |
| 200 | return 1 |
| 201 | case theme.SizeNameText: |
| 202 | return 15 |
| 203 | case theme.SizeNameInputBorder: |
| 204 | return 2 |
| 205 | case theme.SizeNameHeadingText: |
| 206 | return 24 |
| 207 | default: |
| 208 | return theme.DefaultTheme().Size(s) |
| 209 | } |
| 210 | } |