Major improvements to UnifiedPlayer: 1. GetFrameImage() now works when paused for responsive UI updates 2. Play() method properly starts FFmpeg process 3. Frame display loop runs continuously for smooth video display 4. Disabled audio temporarily to fix video playback fundamentals 5. Simplified FFmpeg command to focus on video stream only Player now: - Generates video frames correctly - Shows video when paused - Has responsive progress tracking - Starts playback properly Next steps: Re-enable audio playback once video is stable
64 lines
1.5 KiB
Go
64 lines
1.5 KiB
Go
package fyne
|
|
|
|
import "image/color"
|
|
|
|
// ThemeVariant indicates a variation of a theme, such as light or dark.
|
|
//
|
|
// Since: 2.0
|
|
type ThemeVariant uint
|
|
|
|
// ThemeColorName is used to look up a colour based on its name.
|
|
//
|
|
// Since: 2.0
|
|
type ThemeColorName string
|
|
|
|
// ThemeIconName is used to look up an icon based on its name.
|
|
//
|
|
// Since: 2.0
|
|
type ThemeIconName string
|
|
|
|
// ThemeSizeName is used to look up a size based on its name.
|
|
//
|
|
// Since: 2.0
|
|
type ThemeSizeName string
|
|
|
|
// Theme defines the method to look up colors, sizes and fonts that make up a Fyne theme.
|
|
//
|
|
// Since: 2.0
|
|
type Theme interface {
|
|
Color(ThemeColorName, ThemeVariant) color.Color
|
|
Font(TextStyle) Resource
|
|
Icon(ThemeIconName) Resource
|
|
Size(ThemeSizeName) float32
|
|
}
|
|
|
|
// LegacyTheme defines the requirements of any Fyne theme.
|
|
// This was previously called Theme and is kept for simpler transition of applications built before v2.0.0.
|
|
//
|
|
// Since: 2.0
|
|
type LegacyTheme interface {
|
|
BackgroundColor() color.Color
|
|
ButtonColor() color.Color
|
|
DisabledButtonColor() color.Color
|
|
TextColor() color.Color
|
|
DisabledTextColor() color.Color
|
|
PlaceHolderColor() color.Color
|
|
PrimaryColor() color.Color
|
|
HoverColor() color.Color
|
|
FocusColor() color.Color
|
|
ScrollBarColor() color.Color
|
|
ShadowColor() color.Color
|
|
|
|
TextSize() int
|
|
TextFont() Resource
|
|
TextBoldFont() Resource
|
|
TextItalicFont() Resource
|
|
TextBoldItalicFont() Resource
|
|
TextMonospaceFont() Resource
|
|
|
|
Padding() int
|
|
IconInlineSize() int
|
|
ScrollBarSize() int
|
|
ScrollBarSmallSize() int
|
|
}
|