Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion hydrus/client/ClientConstants.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,9 @@
SORT_FILES_BY_AVERAGE_COLOUR_CHROMATICITY_GREEN_RED = 25
SORT_FILES_BY_AVERAGE_COLOUR_CHROMATICITY_BLUE_YELLOW = 26
SORT_FILES_BY_AVERAGE_COLOUR_HUE = 27
SORT_FILES_BY_SERIATION = 28
SORT_FILES_BY_SERIATION_TAGS = 29
SORT_FILES_BY_SERIATION_VISUAL_TAGS = 30

AVERAGE_COLOUR_FILE_SORTS = {
SORT_FILES_BY_AVERAGE_COLOUR_LIGHTNESS,
Expand Down Expand Up @@ -415,7 +418,10 @@
SORT_FILES_BY_AVERAGE_COLOUR_CHROMATIC_MAGNITUDE,
SORT_FILES_BY_AVERAGE_COLOUR_CHROMATICITY_GREEN_RED,
SORT_FILES_BY_AVERAGE_COLOUR_CHROMATICITY_BLUE_YELLOW,
SORT_FILES_BY_AVERAGE_COLOUR_HUE
SORT_FILES_BY_AVERAGE_COLOUR_HUE,
SORT_FILES_BY_SERIATION,
SORT_FILES_BY_SERIATION_TAGS,
SORT_FILES_BY_SERIATION_VISUAL_TAGS
}

system_sort_type_submetatype_string_lookup = {
Expand All @@ -437,6 +443,9 @@
SORT_FILES_BY_AVERAGE_COLOUR_CHROMATICITY_GREEN_RED : 'average colour',
SORT_FILES_BY_AVERAGE_COLOUR_CHROMATICITY_BLUE_YELLOW : 'average colour',
SORT_FILES_BY_AVERAGE_COLOUR_HUE : 'average colour',
SORT_FILES_BY_SERIATION : 'file',
SORT_FILES_BY_SERIATION_TAGS : 'tags',
SORT_FILES_BY_SERIATION_VISUAL_TAGS : 'file',
SORT_FILES_BY_MIME : 'file',
SORT_FILES_BY_HAS_AUDIO : 'file',
SORT_FILES_BY_RANDOM : None,
Expand All @@ -461,6 +470,9 @@
SORT_FILES_BY_AVERAGE_COLOUR_CHROMATICITY_GREEN_RED : 'balance - green-red',
SORT_FILES_BY_AVERAGE_COLOUR_CHROMATICITY_BLUE_YELLOW : 'balance - blue-yellow',
SORT_FILES_BY_AVERAGE_COLOUR_HUE : 'hue',
SORT_FILES_BY_SERIATION : 'seriation (blurhash)',
SORT_FILES_BY_SERIATION_TAGS : 'seriation (tags)',
SORT_FILES_BY_SERIATION_VISUAL_TAGS : 'seriation (visual+tags)',
SORT_FILES_BY_RATIO : 'resolution ratio',
SORT_FILES_BY_WIDTH : 'width',
SORT_FILES_BY_APPROX_BITRATE : 'approximate bitrate',
Expand Down
13 changes: 13 additions & 0 deletions hydrus/client/ClientOptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ def _InitialiseDefaults( self ):
'remember_last_advanced_file_deletion_reason' : True,
'remember_last_advanced_file_deletion_special_action' : False,
'do_macos_debug_dialog_menus' : False,
'allow_missing_file_locations' : False,
'search_hide_files_in_missing_file_locations' : False,
'search_hide_files_with_missing_paths' : False,
'save_default_tag_service_tab_on_change' : True,
'force_animation_scanbar_show' : False,
'call_mouse_buttons_primary_secondary' : False,
Expand Down Expand Up @@ -283,6 +286,7 @@ def _InitialiseDefaults( self ):
'media_viewer_recenter_media_on_window_resize': True,
'allow_blurhash_fallback' : True,
'fade_thumbnails' : True,
'thumbnail_masonry' : False,
'slideshow_always_play_duration_media_once_through' : False,
'enable_truncated_images_pil' : True,
'do_icc_profile_normalisation' : True,
Expand Down Expand Up @@ -316,6 +320,7 @@ def _InitialiseDefaults( self ):
'mpv_loop_playlist_instead_of_file' : False,
'draw_thumbnail_rating_background' : True,
'draw_thumbnail_numerical_ratings_collapsed_always' : False,
'draw_thumbnail_header' : True,
'show_destination_page_when_dnd_url' : True,
'confirm_non_empty_downloader_page_close' : True,
'confirm_all_page_closes' : False,
Expand Down Expand Up @@ -497,6 +502,7 @@ def _InitialiseDefaults( self ):
'thumbnail_border' : 1,
'thumbnail_margin' : 2,
'thumbnail_dpr_percent' : 100,
'thumbnail_zoom_percent' : 100,
'file_maintenance_idle_throttle_files' : 1,
'file_maintenance_idle_throttle_time_delta' : 2,
'file_maintenance_active_throttle_files' : 1,
Expand Down Expand Up @@ -553,6 +559,11 @@ def _InitialiseDefaults( self ):
'tag_list_tag_display_type_sidebar' : ClientTags.TAG_DISPLAY_SELECTION_LIST,
'tag_list_tag_display_type_media_viewer_hover' : ClientTags.TAG_DISPLAY_SINGLE_MEDIA,
'command_palette_num_chars_for_results_threshold' : 0,
'seriation_visual_bin_size' : 32,
'seriation_max_visual_candidates' : 200,
'seriation_max_tag_candidates' : 200,
'seriation_max_tag_keys' : 5,
'seriation_max_hybrid_candidates' : 250,
}

self._dictionary[ 'floats' ] = {
Expand All @@ -568,6 +579,8 @@ def _InitialiseDefaults( self ):
'dialog_rating_icon_size_px' : ClientGUIPainterShapes.SIZE.width(),
'dialog_rating_incdec_width_px' : ClientGUIPainterShapes.SIZE.width() * 2, #deprecated
'dialog_rating_incdec_height_px' : ClientGUIPainterShapes.SIZE.height(),
'seriation_visual_weight' : 0.7,
'seriation_tag_weight' : 0.3,
}

#
Expand Down
Loading