fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-10-27 09:14 am

[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 [personal profile] ninetydegrees.

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 {
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org