Author: kmachalkova Date: Tue Oct 30 13:51:27 2007 New Revision: 41639 URL: http://svn.opensuse.org/viewcvs/yast?rev=41639&view=rev Log: Explicitely set foreground (font) color to white for rxvt theme (do not display black font on black background) (#336060) Modified: trunk/ncurses/src/NCstyle.rxvt.h Modified: trunk/ncurses/src/NCstyle.rxvt.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCstyle.rxvt.h?rev=41639&r1=41638&r2=41639&view=diff ============================================================================== --- trunk/ncurses/src/NCstyle.rxvt.h (original) +++ trunk/ncurses/src/NCstyle.rxvt.h Tue Oct 30 13:51:27 2007 @@ -79,7 +79,11 @@ attrset->setAttr( NCstyle::ListActiveSelLabel, 7936 ); attrset->setAttr( NCstyle::ListActiveSelData, 7936|A_BOLD ); attrset->setAttr( NCstyle::ListActiveSelHint, 6144|A_BOLD ); - attrset->setAttr( NCstyle::RichTextPlain, 0 ); + attrset->setAttr( NCstyle::RichTextPlain, 1792 ); + //Need to set foreground color explicitely, otherwise urxvt will display + //black font on black background. This solution sucks, but cannot find + //any better (#336060) + attrset->setFg ( NCstyle::RichTextPlain, 7 ); attrset->setAttr( NCstyle::RichTextTitle, 512 ); attrset->setAttr( NCstyle::RichTextLink, 768 ); attrset->setAttr( NCstyle::RichTextArmedlink, 768|A_BOLD ); @@ -143,6 +147,7 @@ attrset->setAttr( NCstyle::ListActiveSelData, 0|A_BOLD ); attrset->setAttr( NCstyle::ListActiveSelHint, 0|A_BOLD ); attrset->setAttr( NCstyle::RichTextPlain, 0 ); + attrset->setFg ( NCstyle::RichTextPlain, 7 ); attrset->setAttr( NCstyle::RichTextTitle, 15360|A_BOLD ); attrset->setAttr( NCstyle::RichTextLink, 768 ); attrset->setAttr( NCstyle::RichTextArmedlink, 768|A_BOLD ); @@ -206,6 +211,7 @@ attrset->setAttr( NCstyle::ListActiveSelData, 0|A_BOLD ); attrset->setAttr( NCstyle::ListActiveSelHint, 0|A_BOLD ); attrset->setAttr( NCstyle::RichTextPlain, 0 ); + attrset->setFg ( NCstyle::RichTextPlain, 7 ); attrset->setAttr( NCstyle::RichTextTitle, 15360|A_BOLD ); attrset->setAttr( NCstyle::RichTextLink, 768 ); attrset->setAttr( NCstyle::RichTextArmedlink, 768|A_BOLD ); @@ -269,6 +275,7 @@ attrset->setAttr( NCstyle::ListActiveSelData, 1536|A_BOLD ); attrset->setAttr( NCstyle::ListActiveSelHint, 1536|A_BOLD ); attrset->setAttr( NCstyle::RichTextPlain, 0 ); + attrset->setFg ( NCstyle::RichTextPlain, 7 ); attrset->setAttr( NCstyle::RichTextTitle, 15360|A_BOLD ); attrset->setAttr( NCstyle::RichTextLink, 768 ); attrset->setAttr( NCstyle::RichTextArmedlink, 768|A_BOLD ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org