Anki/ts/graphs
Matthias Metelka 9f8667fb47
Auto-hide toolbar in Reviewer (#2262)
* Give webviews a slide-in animation

if reduced motion isn't set.

* Auto-hide toolbar in review mode

moving the mouse above the main webview expands the toolbar. When the mouse leaves the toolbar, it will collapse after a delay of 2s.

* Save some space on bottom toolbars

* Use props for all hard-coded transition durations

and decrease most commonly used duration (200ms) to 150ms.

* Move auto-hide logic into ToolbarWebView

and handle auto-hide specific events in the respective webview subclasses.

* Fix typing issues

* Fix flickering issue

* Add auto_hide_toolbar opt-in to preferences

* Rename hide_toolbar to collapse_toolbar

to better describe the dock-like behaviour.

* Rename setting to minimize_distractions

* Reduce calls to pm in eventFilter

* Run formatter

* Revert setting title to something more specific

* Increase default animation time to 180ms

* Inset toolbar in review mode

when auto-hide is not enabled.

* Use card background on toolbar and add glass effect

* Use flatten/elevate over inset/outset

* Use flatten/elevate over inset/outset

* Update toolbar.py

* Fix toolbar background delay

* Tweak styles

* Use "collapse" instead of "auto-hide"

* Fix background misalignment in collapse mode

* Do not collapse toolbar when pointer is outside MainWebView

* Reduce hide_timer interval to 1000ms

* Use CSS to hide toolbar instead of setting webview height

* Add guard to prevent backdrop-filter: blur on Qt 5.14

* Apply transition to body instead of toolbar

to not complicate things for #2301.

* Fix Qt 5.14 and apply guard globally

* Fix background image scaling difference

* Tweak preference wording (dae)
2023-01-09 14:39:31 +10:00
..
added.ts Fix incorrect count in 'added' tooltip 2023-01-05 10:21:26 +10:00
AddedGraph.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
AxisTicks.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
buttons.ts Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
ButtonsGraph.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
calendar.ts Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
CalendarGraph.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
card-counts.ts Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
CardCounts.svelte Auto-hide toolbar in Reviewer (#2262) 2023-01-09 14:39:31 +10:00
CumulativeOverlay.svelte yarn upgrade --latest 2021-10-01 12:52:53 +10:00
ease.ts Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
EaseGraph.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
future-due.ts Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
FutureDue.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
graph-helpers.ts Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
graph-styles.ts merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
Graph.svelte Fix some regressions with the graphs when printing 2022-12-30 17:37:38 +10:00
GraphRangeRadios.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
graphs-base.scss Tweak graph margins again 2022-12-04 21:50:58 +10:00
GraphsPage.svelte Fix some regressions with the graphs when printing 2022-12-30 17:37:38 +10:00
histogram-graph.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
HistogramGraph.svelte Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
HourGraph.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
hours.ts Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
HoverColumns.svelte Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
index.ts Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
InputBox.svelte yarn upgrade --latest 2021-10-01 12:52:53 +10:00
intervals.ts Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
IntervalsGraph.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
NoDataOverlay.svelte Make the NoData overlay match the normal background color 2022-12-04 14:49:04 +10:00
RangeBox.svelte Auto-hide toolbar in Reviewer (#2262) 2023-01-09 14:39:31 +10:00
reviews.ts Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
ReviewsGraph.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
TableData.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
today.ts Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
TodayStats.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
Tooltip.svelte Auto-hide toolbar in Reviewer (#2262) 2023-01-09 14:39:31 +10:00
tooltip.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
tsconfig.json Use custom scrollbar in stats screen, use grid layout and tweak CSS (#2154) 2022-11-02 18:23:08 +10:00
WithGraphData.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00