kunzite (kunzite1) wrote in component_help,
kunzite
kunzite1
component_help

dynamic scrollbar colors

tell me what you think of these:
the default color theme has colors that can make the scrollbar look like the normal ie scrollbar and the one that you see in firefox. i tried to emulate that in the first column of colors. some of the color themes however look fucked up with that. so... i tried to make a secondary version that can be used by setting var bool scrollbar_invert = true; ... since i suck at colors, what do you think?
var bool  scrollbar_invert     = false;
var Color scrollbar_3dlight    = not $scrollbar_invert ? $*header_bgcolor->clone() : $*comp_bgcolor->clone();
var Color scrollbar_highlight  = not $scrollbar_invert ? $*comp_bgcolor->clone()   : $*header_bgcolor->clone();
var Color scrollbar_face       = not $scrollbar_invert ? $*header_bgcolor->clone() : $*comp_bgcolor->clone();
var Color scrollbar_arrow      = not $scrollbar_invert ? $*header_fgcolor->clone() : $*comp_fgcolor->clone();
var Color scrollbar_shadow     = not $scrollbar_invert ? $*header_link->clone()    : $*header_link->clone();
var Color scrollbar_darkshadow = not $scrollbar_invert ? $*header_fgcolor->clone() : $*comp_fgcolor->clone();
var Color scrollbar_track      = not $scrollbar_invert ? $*header_bgcolor->clone() : $*comp_bgcolor->clone();

"""
<style type="text/css">
html {
  scrollbar-3dlight-color:    $scrollbar_3dlight;
  scrollbar-highlight-color:  $scrollbar_highlight;
  scrollbar-face-color:       $scrollbar_face;
  scrollbar-arrow-color:      $scrollbar_arrow;
  scrollbar-shadow-color:     $scrollbar_shadow;
  scrollbar-darkshadow-color: $scrollbar_darkshadow;
  scrollbar-track-color:      $scrollbar_track;
}
</style>
""";
}
Tags: !tutorial, browser: ie, class: page, function: print_custom_head
Subscribe

  • Tutorials, etc.

    Since a prior maintainer of this community felt it necessary to delete all the entries about how to actually do things (ahem) help can be obtained by…

  • HOWTO: Fixing the Display of Mood Theme Images

    UPDATE: As of Release #68 on August 10th, 2010, this problem has been resolved and should no longer affect users using non-custom (i.e.…

  • Layout width problems in Internet Explorer 8

    Hi there, I recently noticed that my layout looks really messed up in IE 8 (Layer #15404192). The sidebar components width is way out of…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 4 comments