Home
last modified time | relevance | path

Searched refs:tint (Results 1 – 25 of 34) sorted by relevance

12

/haiku/src/apps/haikudepot/ui_generic/
H A DLinkView.cpp103 float tint = B_DARKEN_1_TINT; in _UpdateLinkColor() local
104 ViewUIColor(&tint); in _UpdateLinkColor()
109 SetHighUIColor(B_LINK_HOVER_COLOR, tint); in _UpdateLinkColor()
111 SetHighUIColor(B_LINK_TEXT_COLOR, tint); in _UpdateLinkColor()
/haiku/src/apps/webpositive/tabview/
H A DTabManager.cpp105 float tint = IsEnabled() ? B_DARKEN_4_TINT : B_DARKEN_1_TINT; in DrawSymbol() local
107 base, BControlLook::B_LEFT_ARROW, 0, tint); in DrawSymbol()
123 float tint = IsEnabled() ? B_DARKEN_4_TINT : B_DARKEN_1_TINT; in DrawSymbol() local
125 base, BControlLook::B_RIGHT_ARROW, 0, tint); in DrawSymbol()
627 float tint; in _DrawCloseButton() local
629 tint = B_DARKEN_1_TINT; in _DrawCloseButton()
631 tint = 0.50; in _DrawCloseButton()
637 base = tint_color(base, tint); in _DrawCloseButton()
638 tint *= 1.02; in _DrawCloseButton()
642 tint *= 1.4; in _DrawCloseButton()
[all …]
/haiku/src/servers/app/
H A DDrawState.h108 void SetHighUIColor(color_which which, float tint);
109 color_which HighUIColor(float* tint) const;
111 void SetLowUIColor(color_which which, float tint);
112 color_which LowUIColor(float* tint) const;
H A DDrawState.cpp607 DrawState::SetHighUIColor(color_which which, float tint) in SetHighUIColor() argument
610 fWhichHighColorTint = tint; in SetHighUIColor()
615 DrawState::HighUIColor(float* tint) const in HighUIColor()
617 if (tint != NULL) in HighUIColor()
618 *tint = fWhichHighColorTint; in HighUIColor()
625 DrawState::SetLowUIColor(color_which which, float tint) in SetLowUIColor() argument
628 fWhichLowColorTint = tint; in SetLowUIColor()
633 DrawState::LowUIColor(float* tint) const in LowUIColor()
635 if (tint != NULL) in LowUIColor()
636 *tint = fWhichLowColorTint; in LowUIColor()
H A DView.cpp921 float tint = B_NO_TINT; in ColorUpdated() local
926 if (CurrentState()->HighUIColor(&tint) == which) in ColorUpdated()
927 CurrentState()->SetHighColor(tint_color(color, tint)); in ColorUpdated()
929 if (CurrentState()->LowUIColor(&tint) == which) in ColorUpdated()
930 CurrentState()->SetLowColor(tint_color(color, tint)); in ColorUpdated()
941 View::SetViewUIColor(color_which which, float tint) in SetViewUIColor() argument
945 SetViewColor(tint_color(settings.UIColor(which), tint)); in SetViewUIColor()
949 fWhichViewColorTint = tint; in SetViewUIColor()
954 View::ViewUIColor(float* tint) in ViewUIColor() argument
956 if (tint != NULL) in ViewUIColor()
[all …]
H A DView.h144 void SetViewUIColor(color_which which, float tint);
145 color_which ViewUIColor(float* tint);
H A DServerWindow.cpp1800 float tint = B_NO_TINT; in _DispatchViewMessage() local
1803 || link.Read<float>(&tint) != B_OK ) in _DispatchViewMessage()
1806 fCurrentView->CurrentState()->SetHighUIColor(which, tint); in _DispatchViewMessage()
1811 rgb_color color = tint_color(settings.UIColor(which), tint); in _DispatchViewMessage()
1821 float tint = B_NO_TINT; in _DispatchViewMessage() local
1824 || link.Read<float>(&tint) != B_OK ) in _DispatchViewMessage()
1827 fCurrentView->CurrentState()->SetLowUIColor(which, tint); in _DispatchViewMessage()
1832 rgb_color color = tint_color(settings.UIColor(which), tint); in _DispatchViewMessage()
1842 float tint = B_NO_TINT; in _DispatchViewMessage() local
1845 || link.Read<float>(&tint) != B_OK ) in _DispatchViewMessage()
[all …]
/haiku/src/kits/tracker/
H A DMiniMenuField.cpp138 float tint = Window()->IsActive() ? B_DARKEN_3_TINT : B_DARKEN_1_TINT; in Draw() local
142 BControlLook::B_RIGHT_ARROW, 0, tint); in Draw()
H A DTrackerSettingsWindow.cpp300 float tint = B_NO_TINT; in _HandleChangedSettingsView() local
301 view->SetViewUIColor(fSettingsContainerBox->ViewUIColor(&tint), tint); in _HandleChangedSettingsView()
H A DDialogPane.cpp264 float tint = IsEnabled() && Window()->IsActive() ? B_DARKEN_3_TINT in DrawInState() local
283 arrowDirection, 0, tint); in DrawInState()
H A DTitleView.cpp70 float tint = B_NO_TINT; in _DrawLine() local
71 color_which highColor = view->HighUIColor(&tint); in _DrawLine()
74 view->SetHighUIColor(highColor, tint); in _DrawLine()
90 float tint = B_NO_TINT; in _DrawOutline() local
91 color_which highColor = view->HighUIColor(&tint); in _DrawOutline()
94 view->SetHighUIColor(highColor, tint); in _DrawOutline()
/haiku/src/servers/notification/
H A DAppGroupView.cpp111 float tint = B_DARKEN_2_TINT; in _DrawCloseButton() local
120 tint *= 1.2; in _DrawCloseButton()
124 base = tint_color(base, tint); in _DrawCloseButton()
H A DNotificationView.cpp318 float tint = B_DARKEN_2_TINT; in _DrawCloseButton() local
327 tint *= 1.2; in _DrawCloseButton()
331 base = tint_color(base, tint); in _DrawCloseButton()
/haiku/src/kits/interface/
H A DStringView.cpp139 float tint = B_NO_TINT; in AttachedToWindow() local
140 color_which which = parent->ViewUIColor(&tint); in AttachedToWindow()
143 SetViewUIColor(which, tint); in AttachedToWindow()
144 SetLowUIColor(which, tint); in AttachedToWindow()
H A DView.cpp497 float tint = B_NO_TINT; in BView() local
500 if (archive->FindFloat("_uitint", 0, &tint) != B_OK) in BView()
501 tint = B_NO_TINT; in BView()
503 SetHighUIColor((color_which)color, tint); in BView()
507 if (archive->FindFloat("_uitint", 1, &tint) != B_OK) in BView()
508 tint = B_NO_TINT; in BView()
510 SetLowUIColor((color_which)color, tint); in BView()
514 if (archive->FindFloat("_uitint", 2, &tint) != B_OK) in BView()
515 tint = B_NO_TINT; in BView()
517 SetViewUIColor((color_which)color, tint); in BView()
[all …]
H A DControl.cpp164 float tint = B_NO_TINT; in AttachedToWindow() local
165 color_which which = ViewUIColor(&tint); in AttachedToWindow()
167 SetLowUIColor(which, tint); in AttachedToWindow()
H A DInterfaceDefs.cpp1441 tint_color(rgb_color color, float tint) in tint_color() argument
1445 #define LIGHTEN(x) ((uint8)(255.0f - (255.0f - x) * tint)) in tint_color()
1446 #define DARKEN(x) ((uint8)(x * (2 - tint))) in tint_color()
1448 if (tint < 1.0f) { in tint_color()
H A DMenuField.cpp429 float tint = B_NO_TINT; in AttachedToWindow() local
430 color_which which = ViewUIColor(&tint); in AttachedToWindow()
435 SetLowUIColor(which, tint); in AttachedToWindow()
/haiku/headers/os/interface/
H A DView.h272 float tint = B_NO_TINT);
273 color_which ViewUIColor(float* tint = NULL) const;
301 float tint = B_NO_TINT);
302 color_which HighUIColor(float* tint = NULL) const;
310 float tint = B_NO_TINT);
311 color_which LowUIColor(float* tint = NULL) const;
H A DInterfaceDefs.h495 rgb_color tint_color(rgb_color color, float tint);
/haiku/src/apps/drivesetup/
H A DDiskView.cpp137 float tint = (B_NO_TINT + B_LIGHTEN_1_TINT) / 2.0; in Draw() local
138 SetHighColor(tint_color(HighColor(), tint)); in Draw()
139 SetLowColor(tint_color(LowColor(), tint)); in Draw()
/haiku/src/apps/diskusage/
H A DPieView.cpp526 const float tint = 1.4f - level * 0.08f; in _DrawDirectory() local
531 SetHighColor(tint_color(kOutlineColor, tint)); in _DrawDirectory()
537 rgb_color color = tint_color(kBasePieColor[colorIdx], tint); in _DrawDirectory()
/haiku/src/apps/haikudepot/ui/
H A DPackageInfoView.cpp908 float tint = kContentTint - 0.1; in RatingSummaryView() local
909 SetViewUIColor(B_PANEL_BACKGROUND_COLOR, tint); in RatingSummaryView()
922 fLabelViews[i]->SetViewUIColor(ViewUIColor(), tint); in RatingSummaryView()
930 fCountViews[i]->SetViewUIColor(ViewUIColor(), tint); in RatingSummaryView()
/haiku/src/apps/deskbar/
H A DSwitcher.cpp2092 float tint = B_NO_TINT; in DrawTeams() local
2096 tint = 0.85; in DrawTeams()
2098 tint = B_DARKEN_1_TINT; in DrawTeams()
2100 SetHighUIColor(B_PANEL_BACKGROUND_COLOR, tint); in DrawTeams()
2101 SetLowUIColor(ViewUIColor(), tint); in DrawTeams()
/haiku/src/apps/webpositive/
H A DBrowserWindow.cpp287 float tint = B_DARKEN_1_TINT; in Draw() local
290 tint *= 1.4; in Draw()
292 tint *= 1.2; in Draw()
302 tint *= 1.2; in Draw()
309 base = tint_color(base, tint); in Draw()

12