Skip to content

Comments

rectangular magnifier with shadow#2889

Merged
sunderme merged 1 commit intotexstudio-org:masterfrom
octaeder:magnifierShadow
Jan 27, 2023
Merged

rectangular magnifier with shadow#2889
sunderme merged 1 commit intotexstudio-org:masterfrom
octaeder:magnifierShadow

Conversation

@octaeder
Copy link
Contributor

This PR resolves #2885. By this the configuration of the magnifier's shape, border, and shadow are fully separated by providing a checkbox for the shadow. In addition the user can select the shape of a rectangle (formerly called square) with a shadow:

grafik

grafik

Backward compatibility

Default is Circle with shadow as before. Old values are mapped like this:

Square (Rectangle)    --> Rectangle with shadow
Circle with shadow    --> Circle with shadow
Circle without shadow --> Circle without shadow

First case is exceptional because a shadow is added. But this is a very, very small change of the GUI. All other cases make no change.
On the other hand: A combobox with item Rectangle with shadow appended would give a random item sequence, and anyone would ask, "border is not part of the list, so why is shadow?"

}

void PDFDraggableTool::drawCircleGradient(QPainter& painter, const QRect& outline, QColor color, int padding)
void PDFDraggableTool::drawGradient(QPainter& painter, const QRect& outline, QColor color, int padding, int magnifierShape)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enum ... magnifierShape

@sunderme sunderme merged commit 86bed4c into texstudio-org:master Jan 27, 2023
@sunderme
Copy link
Member

thanks

@octaeder octaeder deleted the magnifierShadow branch January 27, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add shadow option for rectangular magnifier

2 participants