Tracker: Raise opacity of dragged and cut items, fixes #19429
Change-Id: If498bb79a55697b2c270f3f21383d3c4f3a3d567 Reviewed-on: https://review.haiku-os.org/c/haiku/+/9014 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
40bb2f8c9f
commit
6848bca37f
@@ -145,7 +145,7 @@ DraggableContainerIcon::MouseMoved(BPoint where, uint32, const BMessage*)
|
||||
view->SetDrawingMode(B_OP_ALPHA);
|
||||
|
||||
rgb_color textColor = ui_color(B_PANEL_TEXT_COLOR);
|
||||
textColor.alpha = 128;
|
||||
textColor.alpha = 192;
|
||||
// set the level of opacity by value
|
||||
view->SetHighColor(textColor);
|
||||
view->SetBlendingMode(B_CONSTANT_ALPHA, B_ALPHA_COMPOSITE);
|
||||
|
||||
@@ -548,7 +548,7 @@ BPose::Draw(BRect rect, const BRect& updateRect, BPoseView* poseView, BView* dra
|
||||
if (fClipboardMode == kMoveSelectionTo) {
|
||||
drawView->SetDrawingMode(B_OP_ALPHA);
|
||||
drawView->SetBlendingMode(B_CONSTANT_ALPHA, B_ALPHA_COMPOSITE);
|
||||
uint8 alpha = 64; // set the level of opacity by value
|
||||
uint8 alpha = 128; // set the level of opacity by value
|
||||
if (poseView->HighColor().IsDark())
|
||||
drawView->SetHighColor(0, 0, 0, alpha);
|
||||
else
|
||||
|
||||
@@ -7628,7 +7628,7 @@ BPoseView::MakeDragBitmap(BRect dragRect, BPoint where, int32 poseIndex, BPoint&
|
||||
|
||||
view->SetDrawingMode(B_OP_ALPHA);
|
||||
view->SetBlendingMode(B_CONSTANT_ALPHA, B_ALPHA_COMPOSITE);
|
||||
uint8 alpha = fade ? 164 : 128; // set the level of opacity by value
|
||||
uint8 alpha = fade ? 164 : 192; // set the level of opacity by value
|
||||
if (HighColor().IsDark())
|
||||
view->SetHighColor(0, 0, 0, alpha);
|
||||
else
|
||||
|
||||
@@ -670,7 +670,7 @@ BTextWidget::Draw(BRect eraseRect, BRect textRect, BPoseView* view, BView* drawV
|
||||
} else if (clipboardMode == kMoveSelectionTo) {
|
||||
drawView->SetDrawingMode(B_OP_ALPHA);
|
||||
drawView->SetBlendingMode(B_CONSTANT_ALPHA, B_ALPHA_COMPOSITE);
|
||||
uint8 alpha = 64; // set the level of opacity by value
|
||||
uint8 alpha = 128; // set the level of opacity by value
|
||||
if (drawView->LowColor().IsLight())
|
||||
drawView->SetHighColor(0, 0, 0, alpha);
|
||||
else
|
||||
@@ -685,7 +685,7 @@ BTextWidget::Draw(BRect eraseRect, BRect textRect, BPoseView* view, BView* drawV
|
||||
} else {
|
||||
drawView->SetDrawingMode(B_OP_ALPHA);
|
||||
drawView->SetBlendingMode(B_CONSTANT_ALPHA, B_ALPHA_COMPOSITE);
|
||||
uint8 alpha = 128; // set the level of opacity by value
|
||||
uint8 alpha = 192; // set the level of opacity by value
|
||||
if (drawView->LowColor().IsLight())
|
||||
drawView->SetHighColor(0, 0, 0, alpha);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user