mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-11 00:23:47 +01:00
Update style.
This commit is contained in:
parent
7b0aab7404
commit
abc1cd6277
@ -372,11 +372,11 @@ zathura_page_widget_draw(GtkWidget* widget, cairo_t* cairo)
|
|||||||
}
|
}
|
||||||
/* draw selection */
|
/* draw selection */
|
||||||
if (priv->selection.y2 != -1 && priv->selection.x2 != -1) {
|
if (priv->selection.y2 != -1 && priv->selection.x2 != -1) {
|
||||||
GdkColor color = priv->zathura->ui.colors.highlight_color;
|
GdkColor color = priv->zathura->ui.colors.highlight_color;
|
||||||
cairo_set_source_rgba(cairo, color.red, color.green, color.blue, transparency);
|
cairo_set_source_rgba(cairo, color.red, color.green, color.blue, transparency);
|
||||||
cairo_rectangle(cairo, priv->selection.x1, priv->selection.y1,
|
cairo_rectangle(cairo, priv->selection.x1, priv->selection.y1,
|
||||||
(priv->selection.x2 - priv->selection.x1), (priv->selection.y2 - priv->selection.y1));
|
(priv->selection.x2 - priv->selection.x1), (priv->selection.y2 - priv->selection.y1));
|
||||||
cairo_fill(cairo);
|
cairo_fill(cairo);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* set background color */
|
/* set background color */
|
||||||
@ -641,9 +641,9 @@ zathura_page_widget_popup_menu(GtkWidget* widget, GdkEventButton* event)
|
|||||||
zathura_image_t* image = NULL;
|
zathura_image_t* image = NULL;
|
||||||
GIRARA_LIST_FOREACH(priv->images, zathura_image_t*, iter, image_it)
|
GIRARA_LIST_FOREACH(priv->images, zathura_image_t*, iter, image_it)
|
||||||
zathura_rectangle_t rect = recalc_rectangle(priv->page, image_it->position);
|
zathura_rectangle_t rect = recalc_rectangle(priv->page, image_it->position);
|
||||||
if (rect.x1 <= event->x && rect.x2 >= event->x && rect.y1 <= event->y && rect.y2 >= event->y) {
|
if (rect.x1 <= event->x && rect.x2 >= event->x && rect.y1 <= event->y && rect.y2 >= event->y) {
|
||||||
image = image_it;
|
image = image_it;
|
||||||
}
|
}
|
||||||
GIRARA_LIST_FOREACH_END(priv->images, zathura_image_t*, iter, image_it);
|
GIRARA_LIST_FOREACH_END(priv->images, zathura_image_t*, iter, image_it);
|
||||||
|
|
||||||
if (image == NULL) {
|
if (image == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user