[dw-free] EasyRead: add custom colors for Reading page option
[commit: http://hg.dwscoalition.org/dw-free/rev/694bbb60ad6a]
http://bugs.dwscoalition.org/show_bug.cgi?id=3008
Custom colors applied to the subject; add some extra padding when there's
custom colors so it looks nicer.
Patch by
ninetydegrees.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3008
Custom colors applied to the subject; add some extra padding when there's
custom colors so it looks nicer.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- bin/upgrading/s2layers/easyread/layout.s2
-------------------------------------------------------------------------------- diff -r 0613169e3117 -r 694bbb60ad6a bin/upgrading/s2layers/easyread/layout.s2 --- a/bin/upgrading/s2layers/easyread/layout.s2 Wed Oct 27 17:08:44 2010 +0800 +++ b/bin/upgrading/s2layers/easyread/layout.s2 Wed Oct 27 17:14:00 2010 +0800 @@ -19,6 +19,7 @@ propgroup presentation { property use tags_page_type; property use userpics_position; property use entry_metadata_position; + property use use_custom_friend_colors; property use use_shared_pic; property use userlite_interaction_links; property use entry_management_links; @@ -26,6 +27,9 @@ propgroup presentation { } set layout_type = "one-column"; +set use_custom_friend_colors = false; +set custom_foreground_element = "subject"; +set custom_background_element = "subject"; ##=============================== ## Journal style - colors @@ -316,6 +320,8 @@ function Page::print_default_stylesheet var string entry_title_font = generate_font_css($*font_entry_title, $*font_base, $*font_fallback, $*font_entry_title_size, $*font_entry_title_units); var string module_font = generate_font_css($*font_module_text, $*font_base, $*font_fallback, $*font_module_text_size, $*font_module_text_units); var string module_title_font = generate_font_css($*font_module_heading, $*font_base, $*font_fallback, $*font_module_heading_size, $*font_module_heading_units); + +var string entrytitle_padding = $*use_custom_friend_colors ? "padding: .2em;" : ""; var string userpic_css = ""; if ($*userpics_position == "left") { @@ -548,6 +554,7 @@ h2.module-header a { .entry .entry-title { $entry_title_font + $entrytitle_padding } .entry .metadata-label { --------------------------------------------------------------------------------