From fe238b29132b43f07aa88cf6bb60bec1ff0d3f8d Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Mon, 14 Jun 2021 15:36:48 +0300 Subject: Swiping and sidebar; various tweaks When a page is opened from the sidebar, swiping back will now reopen the sidebar. Another swipe will dismiss the sidebar and navigate back as usual. Attempted to cache theme colors in GmDocument, but there were issues with theme changes. --- src/gmdocument.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gmdocument.h') diff --git a/src/gmdocument.h b/src/gmdocument.h index 943a408c..221e5c00 100644 --- a/src/gmdocument.h +++ b/src/gmdocument.h @@ -170,6 +170,8 @@ void setUrl_GmDocument (iGmDocument *, const iString *url); void setSource_GmDocument (iGmDocument *, const iString *source, int width, enum iGmDocumentUpdate updateType); void foldPre_GmDocument (iGmDocument *, uint16_t preId); +void invalidatePalette_GmDocument(iGmDocument *); +void makePaletteGlobal_GmDocument(const iGmDocument *); /* copies document colors to the global palette */ //void reset_GmDocument (iGmDocument *); /* free images */ -- cgit v1.2.3