Skip to content

Commit c7e2fda

Browse files
sheikheddymuseumofthoughts
authored andcommitted
Add masonry thumbnails and zoom controls
1 parent 5520a97 commit c7e2fda

File tree

4 files changed

+682
-77
lines changed

4 files changed

+682
-77
lines changed

hydrus/client/ClientOptions.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ def _InitialiseDefaults( self ):
283283
'media_viewer_recenter_media_on_window_resize': True,
284284
'allow_blurhash_fallback' : True,
285285
'fade_thumbnails' : True,
286+
'thumbnail_masonry' : False,
286287
'slideshow_always_play_duration_media_once_through' : False,
287288
'enable_truncated_images_pil' : True,
288289
'do_icc_profile_normalisation' : True,
@@ -316,6 +317,7 @@ def _InitialiseDefaults( self ):
316317
'mpv_loop_playlist_instead_of_file' : False,
317318
'draw_thumbnail_rating_background' : True,
318319
'draw_thumbnail_numerical_ratings_collapsed_always' : False,
320+
'draw_thumbnail_header' : True,
319321
'show_destination_page_when_dnd_url' : True,
320322
'confirm_non_empty_downloader_page_close' : True,
321323
'confirm_all_page_closes' : False,
@@ -497,6 +499,7 @@ def _InitialiseDefaults( self ):
497499
'thumbnail_border' : 1,
498500
'thumbnail_margin' : 2,
499501
'thumbnail_dpr_percent' : 100,
502+
'thumbnail_zoom_percent' : 100,
500503
'file_maintenance_idle_throttle_files' : 1,
501504
'file_maintenance_idle_throttle_time_delta' : 2,
502505
'file_maintenance_active_throttle_files' : 1,
@@ -553,6 +556,11 @@ def _InitialiseDefaults( self ):
553556
'tag_list_tag_display_type_sidebar' : ClientTags.TAG_DISPLAY_SELECTION_LIST,
554557
'tag_list_tag_display_type_media_viewer_hover' : ClientTags.TAG_DISPLAY_SINGLE_MEDIA,
555558
'command_palette_num_chars_for_results_threshold' : 0,
559+
'seriation_visual_bin_size' : 32,
560+
'seriation_max_visual_candidates' : 200,
561+
'seriation_max_tag_candidates' : 200,
562+
'seriation_max_tag_keys' : 5,
563+
'seriation_max_hybrid_candidates' : 250,
556564
}
557565

558566
self._dictionary[ 'floats' ] = {
@@ -568,6 +576,8 @@ def _InitialiseDefaults( self ):
568576
'dialog_rating_icon_size_px' : ClientGUIPainterShapes.SIZE.width(),
569577
'dialog_rating_incdec_width_px' : ClientGUIPainterShapes.SIZE.width() * 2, #deprecated
570578
'dialog_rating_incdec_height_px' : ClientGUIPainterShapes.SIZE.height(),
579+
'seriation_visual_weight' : 0.7,
580+
'seriation_tag_weight' : 0.3,
571581
}
572582

573583
#

0 commit comments

Comments
 (0)