Lines Matching refs:colors

97 /*!	Returns the frame colors for the specified decorator component.
102 \param component The component for which to return the frame colors.
104 \param colors An array of colors to be initialized by the function.
221 ComponentColors colors;
222 _GetComponentColors(COMPONENT_TOP_BORDER, colors, fTopTab);
229 colors[colorsIndex]);
239 colors[2]);
245 ComponentColors colors;
246 _GetComponentColors(COMPONENT_LEFT_BORDER, colors, fTopTab);
253 colors[colorsIndex]);
258 ComponentColors colors;
259 _GetComponentColors(COMPONENT_BOTTOM_BORDER, colors, fTopTab);
266 colors[(4 - colorsIndex) == 4 ? 5 : (4 - colorsIndex)]);
271 ComponentColors colors;
272 _GetComponentColors(COMPONENT_RIGHT_BORDER, colors, fTopTab);
279 colors[(4 - colorsIndex) == 4 ? 5 : (4 - colorsIndex)]);
290 ComponentColors colors;
291 _GetComponentColors(COMPONENT_TOP_BORDER, colors, fTopTab);
298 colors[colorsIndex * 2]);
308 colors[2]);
314 ComponentColors colors;
315 _GetComponentColors(COMPONENT_LEFT_BORDER, colors, fTopTab);
322 colors[colorsIndex * 2]);
332 fTitleBarRect.bottom - 2), colors[2]);
337 ComponentColors colors;
338 _GetComponentColors(COMPONENT_BOTTOM_BORDER, colors, fTopTab);
345 colors[(2 - colorsIndex) == 2 ? 5 : (2 - colorsIndex) * 2]);
350 ComponentColors colors;
351 _GetComponentColors(COMPONENT_RIGHT_BORDER, colors, fTopTab);
358 colors[(2 - colorsIndex) == 2 ? 5 : (2 - colorsIndex) * 2]);
367 ComponentColors colors;
368 _GetComponentColors(COMPONENT_LEFT_BORDER, colors, fTopTab);
370 fDrawingEngine->StrokeRect(border, colors[5]);
381 ComponentColors colors;
382 _GetComponentColors(COMPONENT_RESIZE_CORNER, colors, fTopTab);
392 _DrawResizeKnob(border, false, colors);
397 colors);
420 colors[0]);
426 colors[0]);
440 const ComponentColors& colors)
448 gradient.AddColor(colors[1], 0);
449 gradient.AddColor(colors[2], 255);
456 BPoint(x - offset1.x, y - 2), colors[0]);
458 BPoint(x - offset2.x, y - 1), colors[1]);
460 BPoint(x - 2, y - offset1.y), colors[0]);
462 BPoint(x - 1, y - offset2.y), colors[1]);
473 fDrawingEngine->StrokePoint(pt1, colors[0]);
499 ComponentColors colors;
500 _GetComponentColors(COMPONENT_TAB, colors, tab);
504 colors[COLOR_TAB_FRAME_LIGHT]);
506 colors[COLOR_TAB_FRAME_LIGHT]);
509 colors[COLOR_TAB_FRAME_DARK]);
512 tabRect.RightBottom(), colors[COLOR_TAB_FRAME_DARK]);
523 colors[COLOR_TAB_BEVEL]);
527 colors[COLOR_TAB_BEVEL]);
532 colors[COLOR_TAB_SHADOW]);
537 colors[COLOR_TAB_SHADOW]);
543 gradient.AddColor(colors[COLOR_TAB_LIGHT], 0);
544 gradient.AddColor(colors[COLOR_TAB], 255);
584 ComponentColors colors;
585 _GetComponentColors(COMPONENT_TAB, colors, tab);
588 fDrawingEngine->SetHighColor(colors[COLOR_TAB_TEXT]);
708 \param colors A button color array of the colors to be used.
712 bool down, const ComponentColors& colors)
714 // figure out which colors to use
717 startColor = tint_color(colors[COLOR_BUTTON], B_DARKEN_1_TINT);
718 endColor = colors[COLOR_BUTTON_LIGHT];
720 startColor = tint_color(colors[COLOR_BUTTON], B_LIGHTEN_MAX_TINT);
721 endColor = colors[COLOR_BUTTON];
736 engine->StrokeRect(rect, tint_color(colors[COLOR_BUTTON], B_DARKEN_2_TINT));
759 ComponentColors colors;
760 _GetComponentColors(item, colors, tab);
770 && current->baseColor == colors[COLOR_BUTTON]
771 && current->lightColor == colors[COLOR_BUTTON_LIGHT]) {
794 _DrawBlendedRect(sBitmapDrawingEngine, rect, down, colors);
806 _DrawBlendedRect(sBitmapDrawingEngine, zoomRect, down, colors);
812 _DrawBlendedRect(sBitmapDrawingEngine, zoomRect, down, colors);
837 entry->baseColor = colors[COLOR_BUTTON];
838 entry->lightColor = colors[COLOR_BUTTON_LIGHT];