Lines Matching defs:base

109 	const rgb_color& base, const rgb_color& background, uint32 flags,
112 _DrawButtonFrame(view, rect, updateRect, 0.0f, 0.0f, 0.0f, 0.0f, base,
119 float radius, const rgb_color& base, const rgb_color& background, uint32 flags,
123 base, background, 1.0, 1.0, flags, borders);
130 float leftBottomRadius, float rightBottomRadius, const rgb_color& base,
135 leftBottomRadius, rightBottomRadius, base, background,
142 const BRect& updateRect, const rgb_color& base, uint32 flags,
146 base, false, flags, borders, orientation);
152 const BRect& updateRect, float radius, const rgb_color& base, uint32 flags,
156 radius, base, false, flags, borders, orientation);
163 float leftBottomRadius, float rightBottomRadius, const rgb_color& base,
167 rightTopRadius, leftBottomRadius, rightBottomRadius, base, false, flags,
174 const BRect& updateRect, const rgb_color& base, uint32 flags,
187 rgb_color bevelColor1 = tint_color(base, 1.40);
188 rgb_color bevelColor2 = tint_color(base, 1.25);
198 rgb_color cornerColor = tint_color(base, 0.9);
199 rgb_color bevelColorTop = tint_color(base, 0.5);
200 rgb_color bevelColorLeft = tint_color(base, 0.7);
201 rgb_color bevelColorRightBottom = tint_color(base, 1.08);
214 _FillGradient(view, rect, base, topTint, bottomTint);
220 const BRect& updateRect, const rgb_color& base,
223 _DrawButtonFrame(view, rect, updateRect, 0.0f, 0.0f, 0.0f, 0.0f, base,
230 const BRect& updateRect, float radius, const rgb_color& base,
234 base, background, 0.6, 1.0, flags, borders);
242 float rightBottomRadius, const rgb_color& base,
246 leftBottomRadius, rightBottomRadius, base, background, 0.6, 1.0,
253 const BRect& updateRect, const rgb_color& base, bool popupIndicator,
257 0.0f, 0.0f, 0.0f, 0.0f, base, popupIndicator, flags);
263 const BRect& updateRect, const rgb_color& base, uint32 flags,
267 0.0f, 0.0f, 0.0f, 0.0f, base, flags, borders);
273 const BRect& updateRect, float radius, const rgb_color& base,
277 radius, radius, base, popupIndicator, flags);
284 float leftBottomRadius, float rightBottomRadius, const rgb_color& base,
288 rightTopRadius, leftBottomRadius, rightBottomRadius, base,
295 const BRect& updateRect, const rgb_color& base, uint32 flags,
306 bevelLightColor = tint_color(base, 0.80);
307 bevelShadowColor = tint_color(base, 1.07);
309 bevelLightColor = tint_color(base, 0.6);
310 bevelShadowColor = tint_color(base, 1.12);
320 view->SetHighColor(base);
327 const BRect& updateRect, const rgb_color& base, uint32 flags,
336 rgb_color selectedColor = base;
367 const rgb_color& base, const rgb_color& barColor, float progressPosition)
372 _DrawOuterResessedFrame(view, rect, base, 0.6);
375 rgb_color dark1BorderColor = tint_color(base, 1.3);
376 rgb_color dark2BorderColor = tint_color(base, 1.2);
406 leftBorder = tint_color(base, 0.50);
413 _FillGradient(view, nonfilledRect, base, 0.25, 0.06);
420 const rgb_color& base, uint32 flags)
430 _DrawOuterResessedFrame(view, rect, base, 0.0, 1.0, flags);
432 dark1BorderColor = tint_color(base, 1.15);
433 dark2BorderColor = tint_color(base, 1.15);
435 dark1BorderColor = tint_color(base, 1.50);
436 dark2BorderColor = tint_color(base, 1.48);
444 _DrawOuterResessedFrame(view, rect, base, 0.6, 1.0, flags);
446 dark1BorderColor = tint_color(base, 1.40);
447 dark2BorderColor = tint_color(base, 1.38);
460 _FillGradient(view, rect, base, 0.4, 0.2);
462 _FillGradient(view, rect, base, 0.15, 0.0);
465 if (_RadioButtonAndCheckBoxMarkColor(base, markColor, flags)) {
492 const rgb_color& base, uint32 flags)
503 borderColor = tint_color(base, 1.15);
504 bevelLight = base;
505 bevelShadow = base;
507 borderColor = tint_color(base, 1.50);
511 borderColor = tint_color(base, 1.45);
512 bevelLight = tint_color(base, 0.55);
513 bevelShadow = tint_color(base, 1.11);
546 _MakeGradient(gradient, rect, base, topTint, bottomTint);
550 if (_RadioButtonAndCheckBoxMarkColor(base, markColor, flags)) {
563 const BRect& updateRect, const rgb_color& base, uint32 flags,
577 view->SetHighColor(tint_color(base, B_DARKEN_2_TINT));
618 const BRect& updateRect, const rgb_color& base, uint32 flags,
631 rgb_color buttonColor = isEnabled ? base
632 : tint_color(base, B_LIGHTEN_1_TINT);
637 DrawArrowShape(view, rect, updateRect, base, direction, flags, 1.9f);
646 BRect& rect2, const BRect& updateRect, const rgb_color& base, uint32 flags,
649 DrawScrollBarBackground(view, rect1, updateRect, base, flags, orientation);
650 DrawScrollBarBackground(view, rect2, updateRect, base, flags, orientation);
656 const BRect& updateRect, const rgb_color& base, uint32 flags,
692 rgb_color darkEdge1 = tint_color(base, darkEdge1Tint);
693 rgb_color darkEdge2 = tint_color(base, darkEdge2Tint);
694 rgb_color shadow = tint_color(base, shadowTint);
717 _FillGradient(view, rect, base, gradient1Tint, gradient2Tint,
741 _FillGradient(view, rect, base, gradient1Tint, gradient2Tint,
752 const BRect& updateRect, const rgb_color& base, uint32 flags,
772 light = tint_color(base, B_LIGHTEN_MAX_TINT);
773 dark = tint_color(base, B_DARKEN_3_TINT);
774 dark1 = tint_color(base, B_DARKEN_1_TINT);
775 dark2 = tint_color(base, B_DARKEN_2_TINT);
777 light = tint_color(base, B_LIGHTEN_MAX_TINT);
778 dark = tint_color(base, B_DARKEN_2_TINT);
779 dark1 = tint_color(base, B_LIGHTEN_2_TINT);
780 dark2 = tint_color(base, B_LIGHTEN_1_TINT);
942 BRect horizontalScrollBarFrame, const rgb_color& base,
957 view->SetHighColor(base);
974 rgb_color scrollbarFrameColor = tint_color(base, B_DARKEN_2_TINT);
977 _DrawOuterResessedFrame(view, rect, base, 1.0, 1.0, flags, borders);
994 _DrawOuterResessedFrame(view, horizontalScrollBarFrame, base,
1005 _DrawOuterResessedFrame(view, verticalScrollBarFrame, base,
1017 view->SetHighColor(base);
1025 const BRect& updateRect, const rgb_color& base, uint32 direction,
1089 view->SetHighColor(tint_color(base, tint));
1106 HaikuControlLook::SliderBarColor(const rgb_color& base)
1114 const rgb_color& base, rgb_color leftFillColor, rgb_color rightFillColor,
1140 DrawSliderBar(view, rect, updateRect, base, leftFillColor, flags,
1146 DrawSliderBar(view, rect, updateRect, base, rightFillColor, flags,
1154 const rgb_color& base, rgb_color fillColor, uint32 flags,
1183 view->SetHighColor(base);
1211 fillColor.red = uint8(fillColor.red * 0.4 + base.red * 0.6);
1212 fillColor.green = uint8(fillColor.green * 0.4 + base.green * 0.6);
1213 fillColor.blue = uint8(fillColor.blue * 0.4 + base.blue * 0.6);
1244 edgeLightColor = tint_color(base, edgeLightTint);
1245 edgeShadowColor = tint_color(base, edgeShadowTint);
1307 const rgb_color& base, uint32 flags, orientation orientation)
1335 frameLightColor = tint_color(base, frameLightTint);
1336 frameShadowColor = tint_color(base, frameShadowTint);
1347 DrawButtonBackground(view, rect, updateRect, base, flags);
1363 shadowColor = tint_color(base, B_DARKEN_2_TINT);
1367 rgb_color lightColor = tint_color(base, B_LIGHTEN_2_TINT);
1375 shadowColor = tint_color(base, B_DARKEN_2_TINT);
1379 rgb_color lightColor = tint_color(base, B_LIGHTEN_2_TINT);
1391 const BRect& updateRect, const rgb_color& base, uint32 flags,
1394 DrawSliderTriangle(view, rect, updateRect, base, base, flags, orientation);
1400 const BRect& updateRect, const rgb_color& base, const rgb_color& fill,
1446 frameLightColor = tint_color(base, frameLightTint);
1447 frameShadowColor = tint_color(base, frameShadowTint);
1518 const BRect& updateRect, const rgb_color& base, int32 count,
1528 lightColor = tint_color(base, 0.9);
1529 darkColor = tint_color(base, 1.07);
1531 lightColor = tint_color(base, 0.8);
1532 darkColor = tint_color(base, 1.14);
1608 const BRect& updateRect, const rgb_color& base, uint32 flags,
1636 DrawInactiveTab(view, rect, rect, base, 0, borders, side);
1642 const BRect& updateRect, const rgb_color& base, uint32 flags,
1671 edgeLightColor = base;
1672 edgeShadowColor = base;
1673 frameLightColor = tint_color(base, 1.25);
1674 frameShadowColor = tint_color(base, 1.30);
1675 bevelLightColor = tint_color(base, 0.8);
1676 bevelShadowColor = tint_color(base, 1.07);
1677 fillGradient.AddColor(tint_color(base, 0.85), 0);
1678 fillGradient.AddColor(base, 255);
1680 edgeLightColor = tint_color(base, 0.80);
1681 edgeShadowColor = tint_color(base, 1.03);
1682 frameLightColor = tint_color(base, 1.30);
1683 frameShadowColor = tint_color(base, 1.30);
1684 bevelLightColor = tint_color(base, 0.6);
1685 bevelShadowColor = tint_color(base, 1.07);
1686 fillGradient.AddColor(tint_color(base, 0.75), 0);
1687 fillGradient.AddColor(tint_color(base, 1.03), 255);
1721 _DrawRoundCornerLeftTop(view, leftTopCorner, updateRect, base,
1725 _DrawRoundCornerRightTop(view, rightTopCorner, updateRect, base,
1735 _DrawRoundCornerLeftBottom(view, leftBottomCorner, updateRect, base,
1741 base, edgeLightColor, frameShadowColor, bevelShadowColor,
1749 _DrawRoundCornerLeftTop(view, leftTopCorner, updateRect, base,
1753 _DrawRoundCornerLeftBottom(view, leftBottomCorner, updateRect, base,
1763 _DrawRoundCornerRightTop(view, rightTopCorner, updateRect, base,
1769 base, edgeLightColor, frameShadowColor, bevelShadowColor,
1824 const BRect& updateRect, const rgb_color& base, uint32 flags,
1841 edgeLightColor = base;
1842 edgeShadowColor = base;
1843 frameLightColor = tint_color(base, 1.25);
1844 frameShadowColor = tint_color(base, 1.30);
1845 bevelLightColor = tint_color(base, 0.8);
1846 bevelShadowColor = tint_color(base, 1.07);
1847 fillGradient.AddColor(tint_color(base, 0.85), 0);
1848 fillGradient.AddColor(base, 255);
1850 edgeLightColor = tint_color(base, 0.80);
1851 edgeShadowColor = tint_color(base, 1.03);
1852 frameLightColor = tint_color(base, 1.30);
1853 frameShadowColor = tint_color(base, 1.30);
1854 bevelLightColor = tint_color(base, 1.10);
1855 bevelShadowColor = tint_color(base, 1.17);
1856 fillGradient.AddColor(tint_color(base, 1.12), 0);
1857 fillGradient.AddColor(tint_color(base, 1.08), 255);
1890 view->SetHighColor(base);
1926 const rgb_color& base, orientation orientation, uint32 flags,
1934 background = tint_color(base, B_DARKEN_1_TINT);
1936 background = base;
2041 const rgb_color& base, border_style borderStyle, uint32 flags,
2047 rgb_color scrollbarFrameColor = tint_color(base, B_DARKEN_2_TINT);
2048 if (base.red + base.green + base.blue <= 128 * 3) {
2049 scrollbarFrameColor = tint_color(base, B_LIGHTEN_1_TINT);
2056 _DrawOuterResessedFrame(view, rect, base, 1.0, 1.0, flags, borders);
2065 const BRect& updateRect, const rgb_color& base, uint32 flags,
2072 lightColor = base;
2073 shadowColor = base;
2075 lightColor = tint_color(base, 0.85);
2076 shadowColor = tint_color(base, 1.07);
2086 const BRect& updateRect, const rgb_color& base, uint32 flags,
2098 _DrawOuterResessedFrame(view, rect, base, 0.0, 1.0, flags, borders);
2103 dark1BorderColor = tint_color(base, 1.15);
2106 dark1BorderColor = tint_color(base, 1.50);
2107 dark2BorderColor = tint_color(base, 1.49);
2116 _DrawOuterResessedFrame(view, rect, base, 0.6, 1.0, flags, borders);
2122 dark1BorderColor = tint_color(base, 1.40);
2123 dark2BorderColor = tint_color(base, 1.38);
2156 const rgb_color& base, uint32 borders)
2158 rgb_color frameColor = tint_color(base, 1.30);
2159 rgb_color bevelLight = tint_color(base, 0.8);
2160 rgb_color bevelShadow = tint_color(base, 1.03);
2175 const BRect& updateRect, const rgb_color& base, uint32 flags,
2178 DrawLabel(view, label, NULL, rect, updateRect, base, flags,
2185 const BRect& updateRect, const rgb_color& base, uint32 flags,
2188 DrawLabel(view, label, NULL, rect, updateRect, base, flags, alignment,
2194 HaikuControlLook::DrawLabel(BView* view, const char* label, const rgb_color& base,
2223 low = base;
2317 BRect rect, const BRect& updateRect, const rgb_color& base, uint32 flags,
2384 DrawLabel(view, truncatedLabel.String(), base, flags, location, textColor);
2462 const BRect& updateRect, const rgb_color& base, uint32 flags,
2466 base, true, flags, borders, orientation);
2472 const BRect& updateRect, float radius, const rgb_color& base, uint32 flags,
2476 radius, base, true, flags, borders, orientation);
2483 float leftBottomRadius, float rightBottomRadius, const rgb_color& base,
2487 rightTopRadius, leftBottomRadius, rightBottomRadius, base, true, flags,
2498 float leftBottomRadius, float rightBottomRadius, const rgb_color& base,
2577 rgb_color frameLightColor = _FrameLightColor(base, flags);
2578 rgb_color frameShadowColor = _FrameShadowColor(base, flags);
2667 const rgb_color& base, float contrast, float brightness, uint32 flags,
2670 rgb_color edgeLightColor = _EdgeLightColor(base, contrast,
2672 rgb_color edgeShadowColor = _EdgeShadowColor(base, contrast,
2781 float leftBottomRadius, float rightBottomRadius, const rgb_color& base,
2799 _DrawFlatButtonBackground(view, rect, updateRect, base, popupIndicator,
2805 base, popupIndicator, flags, borders, orientation);
2815 const BRect& updateRect, const rgb_color& base, bool popupIndicator,
2818 _DrawFrame(view, rect, base, base, base, base, borders);
2821 view->SetHighColor(base);
2830 view->SetHighColor(base);
2833 _DrawPopUpMarker(view, indicatorRect, base, flags);
2842 const rgb_color& base, bool popupIndicator, uint32 flags, uint32 borders,
2846 rgb_color bevelLightColor = _BevelLightColor(base, flags);
2847 rgb_color bevelShadowColor = _BevelShadowColor(base, flags);
2852 buttonBgColor = tint_color(base, 0.7);
2854 buttonBgColor = tint_color(base, B_LIGHTEN_1_TINT);
2858 _MakeButtonGradient(fillGradient, rect, base, flags, orientation);
2964 rgb_color separatorBaseColor = base;
2966 separatorBaseColor = tint_color(base, B_DARKEN_1_TINT);
2986 0.0f, rightTopRadius, 0.0f, rightBottomRadius, base, flags, 0);
2991 _DrawPopUpMarker(view, indicatorRect, base, flags);
3001 const rgb_color& base, uint32 flags)
3017 markColor = tint_color(base, 1.35);
3019 markColor = tint_color(base, 1.65);
3031 float leftBottomRadius, float rightBottomRadius, const rgb_color& base,
3048 leftTopRadius, 0.0f, leftBottomRadius, 0.0f, base, flags,
3052 0.0f, rightTopRadius, 0.0f, rightBottomRadius, base, flags,
3055 _DrawPopUpMarker(view, rightRect, base, flags);
3058 rgb_color bevelShadowColor = _BevelShadowColor(base, flags);
3072 rightTopRadius, leftBottomRadius, rightBottomRadius, base, flags);
3080 float leftBottomRadius, float rightBottomRadius, const rgb_color& base,
3093 rgb_color frameLightColor = _FrameLightColor(base, flags);
3094 rgb_color frameShadowColor = _FrameShadowColor(base, flags);
3099 indicatorBase = base;
3102 indicatorBase = tint_color(base, 1.05);
3104 indicatorBase = tint_color(base, 1.12);
3679 HaikuControlLook::_EdgeLightColor(const rgb_color& base, float contrast,
3698 edgeLightColor = tint_color(base, tintLight);
3712 HaikuControlLook::_EdgeShadowColor(const rgb_color& base, float contrast,
3728 edgeShadowColor = tint_color(base, tintShadow);
3742 HaikuControlLook::_FrameLightColor(const rgb_color& base, uint32 flags)
3748 return _FrameShadowColor(base, flags & ~B_ACTIVATED);
3754 frameLightColor = tint_color(base, 1.145);
3762 frameLightColor = tint_color(base, 1.33);
3773 HaikuControlLook::_FrameShadowColor(const rgb_color& base, uint32 flags)
3779 return _FrameLightColor(base, flags & ~B_ACTIVATED);
3785 frameShadowColor = tint_color(base, 1.24);
3788 frameShadowColor = tint_color(base, 1.145);
3796 frameShadowColor = tint_color(base, 1.33);
3803 frameShadowColor = tint_color(base, 1.47);
3812 HaikuControlLook::_BevelLightColor(const rgb_color& base, uint32 flags)
3814 rgb_color bevelLightColor = tint_color(base, 0.2);
3817 bevelLightColor = tint_color(base, B_LIGHTEN_1_TINT);
3820 bevelLightColor = tint_color(base, B_DARKEN_1_TINT);
3827 HaikuControlLook::_BevelShadowColor(const rgb_color& base, uint32 flags)
3829 rgb_color bevelShadowColor = tint_color(base, 1.08);
3832 bevelShadowColor = base;
3835 bevelShadowColor = tint_color(base, B_DARKEN_1_TINT);
3843 const rgb_color& base, float topTint, float bottomTint,
3847 _MakeGradient(gradient, rect, base, topTint, bottomTint, orientation);
3854 const rgb_color& base, float topTint, float middle1Tint,
3858 _MakeGlossyGradient(gradient, rect, base, topTint, middle1Tint,
3866 const rgb_color& base, float topTint, float bottomTint,
3869 gradient.AddColor(tint_color(base, topTint), 0);
3870 gradient.AddColor(tint_color(base, bottomTint), 255);
3881 const rgb_color& base, float topTint, float middle1Tint,
3885 gradient.AddColor(tint_color(base, topTint), 0);
3886 gradient.AddColor(tint_color(base, middle1Tint), 132);
3887 gradient.AddColor(tint_color(base, middle2Tint), 136);
3888 gradient.AddColor(tint_color(base, bottomTint), 255);
3899 const rgb_color& base, uint32 flags, orientation orientation) const
3924 _MakeGradient(gradient, rect, base, topTint, bottomTint, orientation);
3926 _MakeGlossyGradient(gradient, rect, base, topTint, middleTint1,
3933 HaikuControlLook::_RadioButtonAndCheckBoxMarkColor(const rgb_color& base,
3963 color.red = uint8(color.red * mix + base.red * (1.0 - mix));
3964 color.green = uint8(color.green * mix + base.green * (1.0 - mix));
3965 color.blue = uint8(color.blue * mix + base.blue * (1.0 - mix));