mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
PDFViewer: Let users change image rendering
A new checkbox in the toolbar now allows users toggle image rendering. A corresponding Config option makes this setting non-volatile. To void clashing with the previous "show_clipping_paths" option when caching a Page, we now use the RenderingPreferences.hash() and the pair_int_hash funcitons to compute a unique key into the page cache map for a given RenderingPreferences and zoom level.
This commit is contained in:
parent
adc45635e9
commit
67b50d7994
4 changed files with 17 additions and 1 deletions
|
@ -47,6 +47,7 @@ private:
|
|||
RefPtr<GUI::Action> m_page_view_mode_single;
|
||||
RefPtr<GUI::Action> m_page_view_mode_multiple;
|
||||
RefPtr<GUI::CheckBox> m_show_clipping_paths;
|
||||
RefPtr<GUI::CheckBox> m_show_images;
|
||||
|
||||
bool m_sidebar_open { false };
|
||||
ByteBuffer m_buffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue