- oled: add resolution dependent themes
Signed-off-by: Thilo Graf <dbt@novatux.de>
@@ -394,6 +394,9 @@ data/oled/icons/Makefile
|
||||
data/oled/icons/clock/Makefile
|
||||
data/oled/icons/weather/Makefile
|
||||
data/oled/themes/Makefile
|
||||
data/oled/themes/400x240/Makefile
|
||||
data/oled/themes/480x320/Makefile
|
||||
data/oled/themes/800x480/Makefile
|
||||
data/pictures/Makefile
|
||||
data/pictures/backgrounds/Makefile
|
||||
data/pictures/screensaver/Makefile
|
||||
|
@@ -1,14 +1,3 @@
|
||||
SUBDIRS = \
|
||||
clock \
|
||||
weather
|
||||
|
||||
installdir = $(ICONSDIR)/oled
|
||||
|
||||
install_DATA = \
|
||||
advanced.png \
|
||||
blank.png \
|
||||
easy.png \
|
||||
medium.png \
|
||||
simple.png \
|
||||
standby.png \
|
||||
weather.png
|
||||
|
Before Width: | Height: | Size: 451 KiB |
Before Width: | Height: | Size: 601 KiB |
72
data/oled/themes/400x240/Default.otheme
Normal file
@@ -0,0 +1,72 @@
|
||||
# align none 0, align left 1, align center 2, align right 3
|
||||
# if align > 0 x position will be ignore
|
||||
# if glcd_background != "" background color will be ignore
|
||||
# if glcd_position_settings != false this allow to edit position settings over gui
|
||||
glcd_color_fg_red=100
|
||||
glcd_color_fg_green=100
|
||||
glcd_color_fg_blue=100
|
||||
glcd_color_bg_red=0
|
||||
glcd_color_bg_green=0
|
||||
glcd_color_bg_blue=0
|
||||
glcd_color_bar_red=62
|
||||
glcd_color_bar_green=62
|
||||
glcd_color_bar_blue=62
|
||||
glcd_font=/share/fonts/neutrino.ttf
|
||||
glcd_background=
|
||||
glcd_align_channel=2
|
||||
glcd_align_epg=2
|
||||
glcd_align_duration=0
|
||||
glcd_align_start=0
|
||||
glcd_align_end=0
|
||||
glcd_align_time=2
|
||||
glcd_show_progressbar=true
|
||||
glcd_show_duration=false
|
||||
glcd_show_start=false
|
||||
glcd_show_end=false
|
||||
glcd_show_time=true
|
||||
glcd_show_weather=false
|
||||
glcd_percent_channel=25
|
||||
glcd_channel_x_position=0
|
||||
glcd_channel_y_position=19
|
||||
glcd_percent_epg=15
|
||||
glcd_epg_x_position=0
|
||||
glcd_epg_y_position=97
|
||||
glcd_percent_duration=0
|
||||
glcd_duration_x_position=0
|
||||
glcd_duration_y_position=0
|
||||
glcd_percent_start=0
|
||||
glcd_start_x_position=0
|
||||
glcd_start_y_position=0
|
||||
glcd_percent_end=0
|
||||
glcd_end_x_position=0
|
||||
glcd_end_y_position=0
|
||||
glcd_percent_time=25
|
||||
glcd_time_x_position=0
|
||||
glcd_time_y_position=172
|
||||
glcd_percent_bar=20
|
||||
glcd_bar_x_position=0
|
||||
glcd_bar_y_position=157
|
||||
glcd_bar_width=400
|
||||
glcd_percent_logo=25
|
||||
glcd_logo_x_position=0
|
||||
glcd_logo_y_position=19
|
||||
glcd_percent_smalltext=4
|
||||
glcd_smalltext_y_position=4
|
||||
glcd_rec_icon_x_position=332
|
||||
glcd_mute_icon_x_position=228
|
||||
glcd_ts_icon_x_position=369
|
||||
glcd_timer_icon_x_position=278
|
||||
glcd_ecm_icon_x_position=83
|
||||
glcd_dd_icon_x_position=198
|
||||
glcd_txt_icon_x_position=161
|
||||
glcd_cam_icon_x_position=123
|
||||
glcd_digital_clock_y_position=15
|
||||
glcd_size_simple_clock=40
|
||||
glcd_simple_clock_y_position=15
|
||||
glcd_weather_x_position_current=0
|
||||
glcd_weather_x_position_next=0
|
||||
glcd_weather_y_position=0
|
||||
glcd_weather_x_position_current_standby=8
|
||||
glcd_weather_x_position_next_standby=283
|
||||
glcd_weather_y_position_standby=131
|
||||
glcd_position_settings=true
|
4
data/oled/themes/400x240/Makefile.am
Normal file
@@ -0,0 +1,4 @@
|
||||
oledthemesdir = $(THEMESDIR)/oled
|
||||
|
||||
oledthemes_DATA = \
|
||||
Default.otheme
|
18
data/oled/themes/480x320/Makefile.am
Normal file
@@ -0,0 +1,18 @@
|
||||
oledthemesdir = $(THEMESDIR)/oled
|
||||
|
||||
oledthemes_DATA = \
|
||||
Default.otheme \
|
||||
Advanced.otheme \
|
||||
Easy.otheme \
|
||||
Medium.otheme \
|
||||
Simple.otheme \
|
||||
Weather.otheme
|
||||
|
||||
olediconsdir = $(ICONSDIR)/oled
|
||||
|
||||
oledicons_DATA = \
|
||||
advanced.png \
|
||||
easy.png \
|
||||
medium.png \
|
||||
simple.png \
|
||||
weather.png
|
Before Width: | Height: | Size: 601 KiB After Width: | Height: | Size: 601 KiB |
Before Width: | Height: | Size: 601 KiB After Width: | Height: | Size: 601 KiB |
Before Width: | Height: | Size: 601 KiB After Width: | Height: | Size: 601 KiB |
Before Width: | Height: | Size: 601 KiB After Width: | Height: | Size: 601 KiB |
Before Width: | Height: | Size: 451 KiB After Width: | Height: | Size: 451 KiB |
72
data/oled/themes/800x480/Default.otheme
Normal file
@@ -0,0 +1,72 @@
|
||||
# align none 0, align left 1, align center 2, align right 3
|
||||
# if align > 0 x position will be ignore
|
||||
# if glcd_background != "" background color will be ignore
|
||||
# if glcd_position_settings != false this allow to edit position settings over gui
|
||||
glcd_color_fg_red=100
|
||||
glcd_color_fg_green=100
|
||||
glcd_color_fg_blue=100
|
||||
glcd_color_bg_red=0
|
||||
glcd_color_bg_green=0
|
||||
glcd_color_bg_blue=0
|
||||
glcd_color_bar_red=62
|
||||
glcd_color_bar_green=62
|
||||
glcd_color_bar_blue=62
|
||||
glcd_font=/share/fonts/neutrino.ttf
|
||||
glcd_background=
|
||||
glcd_align_channel=2
|
||||
glcd_align_epg=2
|
||||
glcd_align_duration=0
|
||||
glcd_align_start=0
|
||||
glcd_align_end=0
|
||||
glcd_align_time=2
|
||||
glcd_show_progressbar=true
|
||||
glcd_show_duration=false
|
||||
glcd_show_start=false
|
||||
glcd_show_end=false
|
||||
glcd_show_time=true
|
||||
glcd_show_weather=false
|
||||
glcd_percent_channel=25
|
||||
glcd_channel_x_position=0
|
||||
glcd_channel_y_position=38
|
||||
glcd_percent_epg=15
|
||||
glcd_epg_x_position=0
|
||||
glcd_epg_y_position=195
|
||||
glcd_percent_duration=0
|
||||
glcd_duration_x_position=0
|
||||
glcd_duration_y_position=0
|
||||
glcd_percent_start=0
|
||||
glcd_start_x_position=0
|
||||
glcd_start_y_position=0
|
||||
glcd_percent_end=0
|
||||
glcd_end_x_position=0
|
||||
glcd_end_y_position=0
|
||||
glcd_percent_time=25
|
||||
glcd_time_x_position=0
|
||||
glcd_time_y_position=345
|
||||
glcd_percent_bar=20
|
||||
glcd_bar_x_position=0
|
||||
glcd_bar_y_position=315
|
||||
glcd_bar_width=800
|
||||
glcd_percent_logo=25
|
||||
glcd_logo_x_position=0
|
||||
glcd_logo_y_position=38
|
||||
glcd_percent_smalltext=4
|
||||
glcd_smalltext_y_position=9
|
||||
glcd_rec_icon_x_position=663
|
||||
glcd_mute_icon_x_position=455
|
||||
glcd_ts_icon_x_position=738
|
||||
glcd_timer_icon_x_position=555
|
||||
glcd_ecm_icon_x_position=166
|
||||
glcd_dd_icon_x_position=397
|
||||
glcd_txt_icon_x_position=322
|
||||
glcd_cam_icon_x_position=247
|
||||
glcd_digital_clock_y_position=30
|
||||
glcd_size_simple_clock=40
|
||||
glcd_simple_clock_y_position=30
|
||||
glcd_weather_x_position_current=0
|
||||
glcd_weather_x_position_next=0
|
||||
glcd_weather_y_position=0
|
||||
glcd_weather_x_position_current_standby=10
|
||||
glcd_weather_x_position_next_standby=567
|
||||
glcd_weather_y_position_standby=263
|
||||
glcd_position_settings=true
|
4
data/oled/themes/800x480/Makefile.am
Normal file
@@ -0,0 +1,4 @@
|
||||
oledthemesdir = $(THEMESDIR)/oled
|
||||
|
||||
oledthemes_DATA = \
|
||||
Default.otheme
|
@@ -1,9 +1,13 @@
|
||||
installdir = $(THEMESDIR)/oled
|
||||
|
||||
install_DATA = \
|
||||
advanced.otheme \
|
||||
default.otheme \
|
||||
easy.otheme \
|
||||
medium.otheme \
|
||||
simple.otheme \
|
||||
weather.otheme
|
||||
SUBDIRS =
|
||||
if BOXMODEL_VUUNO4KSE
|
||||
SUBDIRS += 400x240
|
||||
endif
|
||||
if BOXMODEL_VUSOLO4K
|
||||
SUBDIRS += 480x320
|
||||
endif
|
||||
if BOXMODEL_VUDUO4K
|
||||
SUBDIRS += 480x320
|
||||
endif
|
||||
if BOXMODEL_VUULTIMO4K
|
||||
SUBDIRS += 800x480
|
||||
endif
|
||||
|
@@ -186,7 +186,7 @@ int CGLCDThemes::Show()
|
||||
//set default theme
|
||||
std::string default_theme = DEFAULT_OLED_THEME;
|
||||
if (default_theme.empty())
|
||||
default_theme = "default";
|
||||
default_theme = "Default";
|
||||
CMenuForwarder* fw = new CMenuForwarder(LOCALE_COLORTHEMEMENU_NEUTRINO_THEME, true, default_theme.c_str(), this, "default_theme", CRCInput::RC_red);
|
||||
themes.addItem(fw);
|
||||
fw->setHint("", LOCALE_COLORTHEMEMENU_NEUTRINO_THEME_HINT);
|
||||
@@ -265,7 +265,7 @@ bool CGLCDThemes::applyDefaultTheme()
|
||||
{
|
||||
g_settings.glcd_theme_name = DEFAULT_OLED_THEME;
|
||||
if (g_settings.glcd_theme_name.empty())
|
||||
g_settings.glcd_theme_name = "default";
|
||||
g_settings.glcd_theme_name = "Default";
|
||||
std::string default_theme = THEMESDIR "/oled/" + g_settings.glcd_theme_name + ".otheme";
|
||||
if(themefile.loadConfig(default_theme)){
|
||||
getTheme(themefile);
|
||||
|