/haiku/src/tests/servers/app/gradients/ |
H A D | main.cpp | 54 g1.AddColor(make_color(0,0,0,255), 0); in Draw() 55 g1.AddColor(make_color(255,255,255,255), 255); in Draw() 57 g2.AddColor(make_color(0,0,0,255), 0); in Draw() 58 g2.AddColor(make_color(255,255,255,255), 255); in Draw() 92 g.AddColor((rgb_color){ 255, 0, 0, 255 }, 0.0); in Draw() 93 g.AddColor((rgb_color){ 0, 255, 0, 0 }, 255.0); in Draw() 100 l.AddColor((rgb_color){ 255, 0, 0, 0 }, 0.0); in Draw() 101 l.AddColor((rgb_color){ 0, 255, 0, 255 }, 255.0); in Draw() 109 v.AddColor((rgb_color){ 255, 0, 0, 0 }, 0.0); in Draw() 110 v.AddColor((rgb_color){ 0, 255, 0, 255 }, 255.0); in Draw() [all …]
|
/haiku/src/apps/gradients/ |
H A D | GradientsView.cpp | 69 gradient.AddColor(c, 0); in DrawLinear() 73 gradient.AddColor(c, 127); in DrawLinear() 77 gradient.AddColor(c, 255); in DrawLinear() 114 gradient.AddColor(make_color(255, 0, 0), 0); in DrawRadial() 115 gradient.AddColor(make_color(0, 255, 0), 127); in DrawRadial() 116 gradient.AddColor(make_color(0, 0, 255), 255); in DrawRadial() 154 gradient.AddColor(c, 0); in DrawRadialFocus() 158 gradient.AddColor(c, 127); in DrawRadialFocus() 162 gradient.AddColor(c, 255); in DrawRadialFocus() 199 gradient.AddColor(c, 0); in DrawDiamond() [all …]
|
/haiku/src/add-ons/screen_savers/gravity/ |
H A D | RainbowItem.cpp | 62 gradient.AddColor((rgb_color){ 255, 65, 54 }, 0); // red in DrawItem() 63 gradient.AddColor((rgb_color){ 255, 133, 27 }, 60); // orange in DrawItem() 64 gradient.AddColor((rgb_color){ 255, 220, 0 }, 102); // yellow in DrawItem() 65 gradient.AddColor((rgb_color){ 46, 204, 64 }, 153); // green in DrawItem() 66 gradient.AddColor((rgb_color){ 0, 116, 217 }, 195); // blue in DrawItem() 68 gradient.AddColor((rgb_color){ 177, 13, 201 }, 255); // violet in DrawItem()
|
/haiku/src/apps/mediaplayer/interface/ |
H A D | PlayPauseButton.cpp | 83 gradient.AddColor(active, 0); in Draw() 84 gradient.AddColor(tint_color(active, B_LIGHTEN_1_TINT), 255); in Draw() 86 gradient.AddColor(tint_color(base, B_DARKEN_1_TINT), 0); in Draw() 87 gradient.AddColor(base, 255); in Draw() 104 gradient.AddColor(active, 0); in Draw() 105 gradient.AddColor(tint_color(active, B_LIGHTEN_1_TINT), 255); in Draw() 107 gradient.AddColor(tint_color(base, B_DARKEN_1_TINT), 0); in Draw() 108 gradient.AddColor(base, 255); in Draw()
|
H A D | VolumeSlider.cpp | 181 frameGradient.AddColor(frameShadowColor, 0); in DrawThumb() 182 frameGradient.AddColor(frameLightColor, 255); in DrawThumb() 197 gradient.AddColor(tint_color(base, topTint), 0); in DrawThumb() 198 gradient.AddColor(tint_color(base, bottomTint), 255); in DrawThumb() 200 gradient.AddColor(tint_color(base, topTint), 0); in DrawThumb() 201 gradient.AddColor(tint_color(base, middleTint1), 132); in DrawThumb() 202 gradient.AddColor(tint_color(base, middleTint2), 136); in DrawThumb() 203 gradient.AddColor(tint_color(base, bottomTint), 255); in DrawThumb()
|
H A D | SymbolButton.cpp | 73 gradient.AddColor(tint_color(base, B_DARKEN_1_TINT), 0); in Draw() 74 gradient.AddColor(base, 255); in Draw()
|
/haiku/src/tests/kits/interface/flatten_picture/ |
H A D | PictureTestCases.cpp | 216 gradient.AddColor(kRed, 0); in testFillRectGradientLinear() 217 gradient.AddColor(kBlue, 255); in testFillRectGradientLinear() 225 gradient.AddColor(kRed, 0); in testFillRectGradientRadial() 226 gradient.AddColor(kBlue, 255); in testFillRectGradientRadial() 234 gradient.AddColor(kRed, 0); in testFillRectGradientRadialFocus() 235 gradient.AddColor(kBlue, 255); in testFillRectGradientRadialFocus() 243 gradient.AddColor(kRed, 0); in testFillRectGradientDiamond() 244 gradient.AddColor(kBlue, 255); in testFillRectGradientDiamond() 252 gradient.AddColor(kRed, 0); in testFillRectGradientConic() 253 gradient.AddColor(kBlue, 255); in testFillRectGradientConic() [all …]
|
/haiku/src/preferences/appearance/ |
H A D | Colors.cpp | 108 message->AddColor(ui_color_name(which), in get_default_colors() 122 message->AddColor(ui_color_name(which), ui_color(which)); in get_current_colors()
|
/haiku/src/libs/icon/style/ |
H A D | GradientTransformable.h | 77 int32 AddColor(const rgb_color& color, float offset); 78 bool AddColor(const BGradient::ColorStop& color,
|
H A D | GradientTransformable.cpp | 40 AddColor(BGradient::ColorStop(0, 0, 0, 255, 0.0), 0); in Gradient() 41 AddColor(BGradient::ColorStop(255, 255, 255, 255, 1.0), 1); in Gradient() 79 AddColor(step.color, step.offset); in Gradient() 111 AddColor(*step, i); in Gradient() 233 AddColor(*step, i); in SetColors() 242 Gradient::AddColor(const rgb_color& color, float offset) in AddColor() function in Gradient 263 Gradient::AddColor(const BGradient::ColorStop& color, int32 index) in AddColor() function in Gradient
|
/haiku/src/preferences/printers/ |
H A D | TestPageView.cpp | 91 gradient.AddColor(darkBlue, 0.0); in Draw() 92 gradient.AddColor(lightBlue, 255.0); in Draw() 226 gradient.AddColor(white, 0.0); in Draw() 227 gradient.AddColor(fColor, 255.0); in Draw()
|
/haiku/src/tests/servers/app/transformation/ |
H A D | main.cpp | 210 gradient.AddColor(top, 0.0f); in Draw() 211 gradient.AddColor(bottom, 255.0f); in Draw() 245 gradient.AddColor(top, 0.0f); in Draw() 246 gradient.AddColor(bottom, 255.0f); in Draw()
|
/haiku/src/servers/app/ |
H A D | SimpleTransform.h | 177 gradient->AddColor(end->color, 255); in Apply() 182 gradient->AddColor(start->color, 0); in Apply()
|
/haiku/src/kits/interface/ |
H A D | HaikuControlLook.cpp | 521 bevelGradient.AddColor(bevelShadow, 0); in DrawRadioButton() 522 bevelGradient.AddColor(bevelLight, 255); in DrawRadioButton() 530 bevelGradient.AddColor(borderColor, 0); in DrawRadioButton() 531 bevelGradient.AddColor(tint_color(borderColor, 0.8), 255); in DrawRadioButton() 1677 fillGradient.AddColor(tint_color(base, 0.85), 0); in DrawActiveTab() 1678 fillGradient.AddColor(base, 255); in DrawActiveTab() 1686 fillGradient.AddColor(tint_color(base, 0.75), 0); in DrawActiveTab() 1687 fillGradient.AddColor(tint_color(base, 1.03), 255); in DrawActiveTab() 1847 fillGradient.AddColor(tint_color(base, 0.85), 0); in DrawInactiveTab() 1848 fillGradient.AddColor(base, 255); in DrawInactiveTab() [all …]
|
H A D | ColorMenuItem.cpp | 80 result = data->AddColor("_color", fColor); in Archive()
|
/haiku/src/add-ons/decorators/FlatDecorator/ |
H A D | FlatDecorator.cpp | 457 gradient.AddColor(tint_color(colors[1], 1.05), 0); in _DrawFrame() 458 gradient.AddColor(tint_color(colors[1], 1.0), 255); in _DrawFrame() 605 gradient.AddColor(tint_color(colors[COLOR_TAB], 0.6), 0); in _DrawTab() 606 gradient.AddColor(tint_color(colors[COLOR_TAB], 1.0), 200); in _DrawTab() 608 gradient.AddColor(tint_color(colors[COLOR_TAB], 0.9), 0); in _DrawTab() 609 gradient.AddColor(tint_color(colors[COLOR_TAB], 1.0), 150); in _DrawTab() 798 gradient.AddColor(startColor, 0); in _DrawBlendedRect() 799 gradient.AddColor(endColor, 250); in _DrawBlendedRect()
|
/haiku/src/servers/app/decorator/ |
H A D | DefaultDecorator.cpp | 448 gradient.AddColor(colors[1], 0); in _DrawResizeKnob() 449 gradient.AddColor(colors[2], 255); in _DrawResizeKnob() 543 gradient.AddColor(colors[COLOR_TAB_LIGHT], 0); in _DrawTab() 544 gradient.AddColor(colors[COLOR_TAB], 255); in _DrawTab() 730 gradient.AddColor(startColor, 0); in _DrawBlendedRect() 731 gradient.AddColor(endColor, 255); in _DrawBlendedRect()
|
/haiku/headers/os/interface/ |
H A D | Gradient.h | 68 int32 AddColor(const rgb_color& color,
|
/haiku/src/add-ons/screen_savers/leaves/ |
H A D | Leaves.cpp | 239 gradient.AddColor(kColors[color][0], 0.f); in Draw() 240 gradient.AddColor(kColors[color][1], 255.f); in Draw()
|
/haiku/src/apps/icon-o-matic/gui/ |
H A D | StyleView.cpp | 376 gradient.AddColor(fStyle->Color(), 0); in _SetStyleType() 377 gradient.AddColor(fStyle->Color(), 1); in _SetStyleType()
|
/haiku/src/preferences/input/ |
H A D | MouseView.cpp | 243 bodyGradient.AddColor(kMouseBodyTopColor, 0); in Draw() 244 bodyGradient.AddColor(kMouseBodyBottomColor, 255); in Draw()
|
/haiku/src/add-ons/control_look/FlatControlLook/ |
H A D | FlatControlLook.cpp | 1036 fillGradient.AddColor(tint_color(base, 0.85), 0); in DrawActiveTab() 1037 fillGradient.AddColor(base, 255); in DrawActiveTab() 1045 fillGradient.AddColor(tint_color(base, 0.95), 0); in DrawActiveTab() 1046 fillGradient.AddColor(tint_color(base, 1.0), 255); in DrawActiveTab() 1988 gradient.AddColor(frameLightColor, 0); in _DrawMenuFieldBackgroundInside() 1989 gradient.AddColor(frameShadowColor, 255); in _DrawMenuFieldBackgroundInside() 2026 gradient.AddColor(frameLightColor, 0); in _DrawMenuFieldBackgroundInside() 2027 gradient.AddColor(frameShadowColor, 255); in _DrawMenuFieldBackgroundInside() 2115 gradient.AddColor(tint_color(base, 0.97), 0); in _MakeGradient() 2116 gradient.AddColor(tint_color(base, 1.0), 255); in _MakeGradient() [all …]
|
/haiku/src/apps/powerstatus/ |
H A D | PowerStatusView.cpp | 274 gradient.AddColor(tint_color(fillColor, topTint), 0); in _DrawBattery() 275 gradient.AddColor(tint_color(fillColor, middleTint1), 132); in _DrawBattery() 276 gradient.AddColor(tint_color(fillColor, middleTint2), 136); in _DrawBattery() 277 gradient.AddColor(tint_color(fillColor, bottomTint), 255); in _DrawBattery()
|
/haiku/src/add-ons/decorators/BeDecorator/ |
H A D | BeDecorator.cpp | 513 gradient.AddColor(colors[1], 0); in _DrawFrame() 514 gradient.AddColor(colors[2], 255); in _DrawFrame() 857 gradient.AddColor(colorA, 0); in _DrawBlendedRect() 858 gradient.AddColor(colorB, 95); in _DrawBlendedRect() 859 gradient.AddColor(colorC, 159); in _DrawBlendedRect() 860 gradient.AddColor(colorD, 255); in _DrawBlendedRect()
|
/haiku/src/preferences/locale/ |
H A D | LanguageListView.cpp | 292 gradient.AddColor(i % (step * 2) == 0 in Draw() 294 gradient.AddColor(ViewColor(), 255); in Draw()
|