Commit ea53ac4a authored by David Fuhrmann's avatar David Fuhrmann

macosx: change opacity slider to percent in simple prefs

(cherry picked from commit f2bc92ad)
Signed-off-by: default avatarDavid Fuhrmann <david.fuhrmann@googlemail.com>
parent bf2dcfc3
...@@ -667,7 +667,7 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na ...@@ -667,7 +667,7 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na
[self setupField: o_osd_font_fld forOption: "freetype-font"]; [self setupField: o_osd_font_fld forOption: "freetype-font"];
[self setupButton: o_osd_font_color_pop forIntList: "freetype-color"]; [self setupButton: o_osd_font_color_pop forIntList: "freetype-color"];
[self setupButton: o_osd_font_size_pop forIntList: "freetype-rel-fontsize"]; [self setupButton: o_osd_font_size_pop forIntList: "freetype-rel-fontsize"];
i = config_GetInt( p_intf, "freetype-opacity" ); i = config_GetInt( p_intf, "freetype-opacity" ) * 100.0 / 255.0 + 0.5;
[o_osd_opacity_fld setIntValue: i]; [o_osd_opacity_fld setIntValue: i];
[o_osd_opacity_sld setIntValue: i]; [o_osd_opacity_sld setIntValue: i];
[o_osd_opacity_sld setToolTip: _NS(config_GetLabel( p_intf, "freetype-opacity"))]; [o_osd_opacity_sld setToolTip: _NS(config_GetLabel( p_intf, "freetype-opacity"))];
...@@ -995,7 +995,7 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch ...@@ -995,7 +995,7 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
config_PutPsz( p_intf, "freetype-font", [[o_osd_font_fld stringValue] UTF8String] ); config_PutPsz( p_intf, "freetype-font", [[o_osd_font_fld stringValue] UTF8String] );
SaveIntList( o_osd_font_color_pop, "freetype-color" ); SaveIntList( o_osd_font_color_pop, "freetype-color" );
SaveIntList( o_osd_font_size_pop, "freetype-rel-fontsize" ); SaveIntList( o_osd_font_size_pop, "freetype-rel-fontsize" );
config_PutInt( p_intf, "freetype-opacity", [o_osd_opacity_sld intValue] ); config_PutInt( p_intf, "freetype-opacity", [o_osd_opacity_fld intValue] * 255.0 / 100.0 + 0.5 );
config_PutInt( p_intf, "freetype-bold", [o_osd_forcebold_ckb state] ); config_PutInt( p_intf, "freetype-bold", [o_osd_forcebold_ckb state] );
SaveIntList( o_osd_outline_color_pop, "freetype-outline-color" ); SaveIntList( o_osd_outline_color_pop, "freetype-outline-color" );
SaveIntList( o_osd_outline_thickness_pop, "freetype-outline-thickness" ); SaveIntList( o_osd_outline_thickness_pop, "freetype-outline-thickness" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment