60 Commits

Author SHA1 Message Date
pax
7b6c325bdb Nerd Font glyph buttons, remove hardcoded button widths
Auto-detects if app font has Nerd Font glyphs. If yes, uses
unicode icons for Play/Pause/Mute/Loop/etc. Falls back to text.
Removed all setFixedWidth on buttons so QSS can control sizing.
2026-04-05 05:06:36 -05:00
pax
915afb41df Ctrl+P privacy screen works from slideshow window 2026-04-05 04:52:48 -05:00
pax
1cc7bc06c1 Privacy screen hides slideshow and pauses video, update keybinds
- Ctrl+P now hides slideshow window and pauses all video playback
- Slideshow restored when privacy screen is toggled off
- README keybinds: arrow keys + hjkl for preview navigation
2026-04-05 04:48:41 -05:00
pax
5c3995f5d6 Fix right-click: select visually without activating preview
Right-click selects the thumbnail (border highlight) but doesn't
trigger post_selected/activated, so preview stays on current post.
Added hover border highlight. Removed _last_activated_index guard.
2026-04-05 04:30:40 -05:00
pax
05e19ee957 Clear preview on blacklist, right-click doesn't change selection
- Blacklisting a tag or post clears the preview
- Right-click shows context menu without selecting/activating post
2026-04-05 04:25:05 -05:00
pax
fad6ab65af Fix video thumbnails (ffmpeg with placeholder fallback), fix right-click restart
- Video thumbnails: try ffmpeg, fall back to play icon placeholder
- Right-click no longer restarts video playback on same post
- Reset activated index on new search
2026-04-05 04:21:48 -05:00
pax
a2302e2caa Add missing defaults, log all caught exceptions
- Add prefetch_adjacent, clear_cache_on_exit, slideshow_monitor,
  library_dir to _DEFAULTS for fresh installs
- Replace all silent except-pass with logged warnings
2026-04-05 04:01:35 -05:00
pax
08c961ba80 Configurable slideshow monitor in Settings > General
Dropdown lists all monitors. Default: same as app window.
Select a specific monitor to always open slideshow there.
2026-04-05 03:55:47 -05:00
pax
48fec74dcd Populate info panel on first slideshow open 2026-04-05 03:43:41 -05:00
pax
d8b28152f6 Hide preview and expand info panel when slideshow is open
Preview widget hidden (not just cleared), info panel expands to
fill the space. Splitter sizes saved and restored on close.
2026-04-05 03:40:44 -05:00
pax
e0f54a963d Show info panel with tags in preview area while slideshow is open
Auto-shows the info panel when slideshow opens (filling the empty
preview space with tags and post details). Restores previous
visibility state when slideshow closes.
2026-04-05 03:37:03 -05:00
pax
192397f1ec Pre-release fixes for v0.1.5
- Fix Library slideshow navigation (was falling through to Browse)
- Fix bookmarks import signal using wrong variable name
- Fix "Favoriting" status message → "Bookmarking"
- Rename FavThumbSignals → BookmarkThumbSignals
- Update README: all Favorite→Bookmark, add Library section
- Add Library tab to keybinds documentation
2026-04-05 03:13:00 -05:00
pax
c26d9a64f9 Space to pause/play video when hovering over preview
Uses keyPressEvent on main window — only fires when no text
input has focus (search bar consumes Space itself). Checks
underMouse() so it only works when hovering the preview.
2026-04-05 03:06:47 -05:00
pax
768deca348 Fix video position sync between preview and slideshow
Wait for media to load before seeking. Position remembered
both ways: preview->slideshow on open, slideshow->preview on close.
2026-04-05 02:32:54 -05:00
pax
fec1470629 Slideshow remembers video position, fix preview restore on close
- Grabs video position before opening slideshow and seeks to it
- Use closed signal from closeEvent instead of destroyed for
  reliable preview restoration on slideshow close
2026-04-05 02:29:42 -05:00
pax
cfbb58fe9f Fix recursive call in _set_preview_media breaking all previews
Was calling itself instead of self._preview.set_media in the
else branch, causing infinite recursion and silent failure.
2026-04-05 02:25:42 -05:00
pax
c231842897 Clear preview when slideshow is open, restore on close
Media only plays in slideshow when it's open — preview panel
shows just info/tags. Restores preview on slideshow close.
2026-04-05 02:23:06 -05:00
pax
bbb5600c98 Show/hide slideshow actions when switching tabs with slideshow open 2026-04-05 02:18:21 -05:00
pax
fb42d53dbc Hide Bookmark/Save buttons in slideshow when viewing Library 2026-04-05 02:16:27 -05:00
pax
f8582e83fa Configurable library directory in Settings > Paths
Browse button to pick a custom library save directory.
Applied on startup via set_library_dir(). Restart required.
2026-04-05 02:01:44 -05:00
pax
e84765a06f Fix library thumbs, decouple save/bookmark, smaller dot + yellow star
- Skip video files in library thumbnail generation (PIL can't open them)
- _on_bookmark_done only sets bookmarked for bookmark ops, saved for save ops
- Smaller green dot with yellow star to its right
- Default bookmark star color: yellow (#ffcc00)
2026-04-05 01:46:42 -05:00
pax
72e4d5c5a2 v0.1.4 — Library rewrite: Browse | Bookmarks | Library
Major restructure of the favorites/library system:

- Rename "Favorites" to "Bookmarks" throughout (DB API, GUI, signals)
- Add Library tab for browsing saved files on disk with sorting
- Decouple bookmark from save — independent operations now
- Two indicators on thumbnails: star (bookmarked), green dot (saved)
- Both indicators QSS-controllable (qproperty-bookmarkedColor/savedColor)
- Unbookmarking no longer deletes saved files
- Saving no longer auto-bookmarks
- Library tab: folder sidebar, sort by date/name/size, async thumbnails
- DB table kept as "favorites" internally for migration safety
2026-04-05 01:38:41 -05:00
pax
074d75770e Auto-evict cache after each image download
When auto_evict is enabled and cache exceeds max_cache_mb,
evicts oldest non-favorited files immediately after download.
2026-04-05 01:09:17 -05:00
pax
6375806127 Backfill blacklisted posts from next API pages
When blacklist filtering reduces results below page size, fetches
additional pages to fill the gap. Filtered posts from backfill
pages also go through the blacklist. Caps at 5 extra pages.
2026-04-05 01:02:39 -05:00
pax
f311326e73 Optional prefetch with progress bar, post blacklist, theme template link
- Prefetch adjacent posts is now a toggle in Settings > General (off by default)
- Prefetch progress bar on thumbnails shows download state
- Blacklist Post: right-click to hide a specific post by URL
- "Create from Template" opens themes reference on git.pax.moe
  and spawns the default text editor with custom.qss
2026-04-05 00:45:53 -05:00
pax
5d48581f52 Prefetch in all 4 directions (left, right, up, down)
CDN downloads don't count against API rate limits so we can
safely prefetch all adjacent posts for instant navigation.
2026-04-05 00:32:04 -05:00
pax
a9d177ee91 Throttle prefetch: only next+prev, 1s stagger, sequential
Reduced from 3 concurrent prefetches to 2 sequential with 1s
delay between them. Avoids hitting Danbooru's 10 req/s rate limit.
2026-04-05 00:28:35 -05:00
pax
a5f33237dd Prefetch adjacent posts for faster click-to-play
When viewing a post, silently downloads the next, previous, and
second-next posts in the background. Cached files are skipped.
2026-04-05 00:27:07 -05:00
pax
2bca5ca188 Click-to-seek, scroll-to-volume, filetype in preview info bar
- Clicking the seek bar jumps to that position (both preview and slideshow)
- Scroll wheel adjusts volume when viewing video (both preview and slideshow)
- Filetype shown in the info bar below preview (e.g. JPG, WEBM, PNG)
2026-04-05 00:21:19 -05:00
pax
5d87457840 Scroll tilt flips pages without auto-selecting first post
Separate page_forward/page_back signals from nav boundary signals
so tilt just changes page, doesn't trigger post preview.
2026-04-05 00:14:41 -05:00
pax
fd476c4967 Fix grid selection highlight with custom QSS themes
Extract selection-background-color from QSS and apply it to the
app palette so the grid's custom-painted highlight matches the theme.
2026-04-04 22:50:16 -05:00
pax
1e7b6ab193 Switch to Fusion style when custom.qss is loaded
System Qt themes (Breeze etc.) conflict with custom QSS, causing
broken button rendering. Fusion style gives QSS full control.
2026-04-04 22:41:27 -05:00
pax
6554344523 Categorized blacklist tag submenu in right-click context
Blacklist Tag submenu now shows Artist/Character/Copyright/General/Meta
categories for Danbooru/e621. Falls back to flat list for other sites.
2026-04-04 21:39:20 -05:00
pax
8f2fc14b43 Add debug log for tag categories in info panel 2026-04-04 21:37:08 -05:00
pax
b6c6a6222a Categorized tags in info panel with color coding
- Artist (gold), Character (green), Copyright (purple), Species
  (red), General, Meta/Lore (gray)
- Danbooru and e621 provide categories from API
- Gelbooru/Moebooru fall back to flat tag list
2026-04-04 21:34:01 -05:00
pax
9f636532c0 Fix blacklist: enable by default, re-search after blacklisting tag
- blacklist_enabled defaults to "1" so it works out of the box
- Right-click blacklist auto-enables and re-searches immediately
2026-04-04 21:26:43 -05:00
pax
25cfc50f25 Fix QTextEdit text color in Windows dark mode
Explicitly set color and background on QTextEdit so blacklist
text box is readable in dark theme.
2026-04-04 21:24:45 -05:00
pax
d3f384d5f9 Rewrite blacklist: paste-friendly text box, toggle, client-side filter
- Replace one-at-a-time tag list with a text box (paste space or
  newline separated tags)
- Add enable/disable checkbox for blacklist
- Switch from server-side -tag appending (broke tag limits) to
  client-side post filtering
- Import merges with existing tags
2026-04-04 21:21:49 -05:00
pax
4f8b703132 Fix slideshow state not updating after async favorite/save
Update fullscreen button state in _on_fav_done callback so it
refreshes after the async download completes, not before.
2026-04-04 20:44:51 -05:00
pax
823bcd500e Merge Save/Unsave into toggle button, add Ctrl+H to hide UI
- Single Save/Unsave button that toggles based on library state
- Ctrl+H in slideshow hides/shows toolbar and video controls
2026-04-04 20:41:52 -05:00
pax
cb249d9b36 Fix slideshow state buttons for favorites and saved files
Check actual filesystem for saved state instead of relying on
thumbnail cache. Also works on the favorites tab now — always
shows as favorited, checks library by folder.
2026-04-04 20:39:22 -05:00
pax
252cc4e6f3 Favorites bulk context menu, slideshow state buttons
- Add multi-select right-click menu in favorites (save all, unsave
  all, move all, unfavorite all)
- Slideshow toolbar buttons show post state: Favorite/Unfavorite,
  Save enabled/disabled, Unsave enabled/disabled
- State updates after every favorite/save/unsave action
2026-04-04 20:36:48 -05:00
pax
4675c0a691 Slideshow toolbar, unsave from library, fix async error handling
- Add Favorite/Save/Unsave buttons to slideshow mode toolbar
- Add "Unsave from Library" to grid and preview right-click menus
- Fix silent exception swallowing in persistent event loop
- Fix closeEvent race condition with async thread join
2026-04-04 20:31:10 -05:00
pax
afa08ff007 Performance: persistent event loop, batch DB, directory pre-scan
- Replace per-operation thread spawning with a single persistent
  asyncio event loop (saves ~10-50ms per async operation)
- Pre-scan saved directories into sets instead of per-post
  exists() calls (~80+ syscalls reduced to a few iterdir())
- Add add_favorites_batch() for single-transaction bulk inserts
- Add missing indexes on favorites.folder and favorites.favorited_at
2026-04-04 20:19:22 -05:00
pax
f0afe52743 Fix page boundary nav for up/down in slideshow mode
Check direction sign (>0/<0) instead of exact value (1/-1) so
column-sized jumps from up/down also trigger page turns.
2026-04-04 20:14:51 -05:00
pax
a3e114c5b3 Add delete buttons to saved searches, clear history on exit
- Saved searches now have an x button to remove them individually
- Session cache mode clears search history but keeps saved searches
2026-04-04 20:09:59 -05:00
pax
97ad56c12f Add up/down navigation in slideshow mode
Up/Down/J/K in slideshow now navigate by grid row, matching
the grid's column layout.
2026-04-04 20:01:00 -05:00
pax
10d7240d5c Sync slideshow with main app — clicking posts updates fullscreen
Centralized fullscreen update logic so any media change in the
main preview (click, navigate, favorites) also updates the
slideshow window if it's open.
2026-04-04 19:55:41 -05:00
pax
becdb2d18e Grid boundary nav: up/down/left/right past edge loads next/prev page
All arrow keys and hjkl now trigger page turns at grid boundaries,
not just left/right in preview mode.
2026-04-04 19:53:07 -05:00
pax
94405cfa85 Auto-select first/last post after page turn from navigation
When navigating past the last post (next page) or before the first
post (prev page), the new page loads and automatically selects and
previews the first or last post. Works in both preview and slideshow.
2026-04-04 19:49:52 -05:00