screenshot-ui: Add cursor capturing option
The cursor texture, scale and position is captured separately and overlaid on top of the preview, and on top of the final screenshot image. This allows toggling it on and off post-factum. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1954>
This commit is contained in:

committed by
Marge Bot

parent
639a346c1e
commit
941774b786
@ -44,5 +44,6 @@
|
||||
<file alias="icons/scalable/status/screenshot-ui-area-symbolic.svg">screenshot-ui-area-symbolic.svg</file>
|
||||
<file alias="icons/scalable/status/screenshot-ui-display-symbolic.svg">screenshot-ui-display-symbolic.svg</file>
|
||||
<file alias="icons/scalable/status/screenshot-ui-window-symbolic.svg">screenshot-ui-window-symbolic.svg</file>
|
||||
<file alias="icons/scalable/status/select-mode-symbolic.svg">select-mode-symbolic.svg</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
|
@ -70,6 +70,19 @@
|
||||
}
|
||||
}
|
||||
|
||||
.screenshot-ui-show-pointer-button {
|
||||
padding: $base_padding * 2;
|
||||
border-radius: 99px;
|
||||
background-color: $hover_bg_color;
|
||||
&:hover, &:focus { background-color: lighten($hover_bg_color, 5%); }
|
||||
&:active { background-color: $active_bg_color; }
|
||||
&:checked { background-color: darken($hover_bg_color, 10%); }
|
||||
|
||||
StIcon {
|
||||
icon-size: $base_icon_size;
|
||||
}
|
||||
}
|
||||
|
||||
.screenshot-ui-area-indicator-shade {
|
||||
background-color: rgba(0, 0, 0, .3);
|
||||
}
|
||||
|
2
data/theme/select-mode-symbolic.svg
Normal file
2
data/theme/select-mode-symbolic.svg
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 16 16" width="16px"><path d="m 2.953125 1.074219 l 2.417969 13.210937 l 3.238281 -2.398437 l 2.054687 2.648437 c 1.03125 1.433594 3.148438 -0.210937 2.011719 -1.5625 l -2.015625 -2.59375 l 2.984375 -2.175781 z m 0 0" fill="#2e3436"/></svg>
|
After Width: | Height: | Size: 346 B |
Reference in New Issue
Block a user