mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 08:01:20 +02:00
Add ability to style subtitles (#177)
Adds settings for styling text subtitles such as srt/subrip ## Issues Closes #11
This commit is contained in:
parent
762e8f287d
commit
5720603447
14 changed files with 529 additions and 11 deletions
|
|
@ -83,6 +83,31 @@ enum AppThemeColors {
|
|||
ORANGE = 3;
|
||||
}
|
||||
|
||||
enum EdgeStyle{
|
||||
EDGE_NONE = 0;
|
||||
EDGE_SOLID = 1;
|
||||
EDGE_SHADOW = 2;
|
||||
}
|
||||
|
||||
enum BackgroundStyle{
|
||||
BG_NONE = 0;
|
||||
BG_WRAP = 1;
|
||||
BG_BOXED = 2;
|
||||
}
|
||||
|
||||
message SubtitlePreferences{
|
||||
int32 font_size = 1;
|
||||
int32 font_color = 2;
|
||||
int32 font_opacity = 3;
|
||||
int32 edge_color = 4;
|
||||
EdgeStyle edge_style = 5;
|
||||
int32 background_color = 6;
|
||||
int32 background_opacity = 7;
|
||||
BackgroundStyle background_style = 8;
|
||||
bool font_bold = 9;
|
||||
bool font_italic = 10;
|
||||
}
|
||||
|
||||
message InterfacePreferences {
|
||||
ThemeSongVolume play_theme_songs = 1;
|
||||
bool remember_selected_tab = 2;
|
||||
|
|
@ -90,6 +115,7 @@ message InterfacePreferences {
|
|||
AppThemeColors app_theme_colors = 4;
|
||||
bool nav_drawer_switch_on_focus = 5;
|
||||
bool show_clock = 6;
|
||||
SubtitlePreferences subtitles_preferences = 7;
|
||||
}
|
||||
|
||||
message AppPreferences {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue