"""Configuration-ready constants."""
GALLERY_PER_ROW_DEFAULT = 5
+GALLERY_PER_ROW_MAX = 32
GTK_APP_ID = 'plomlompom.com.StablePixBrowser.App'
CACHE_PATH = 'cache.json'
BOOKMARKS_PATH = 'bookmarks.json'
from typing import Callable, Optional, Self
import gi # type: ignore
-from browser.config_constants import GALLERY_PER_ROW_DEFAULT
+from browser.config_constants import (GALLERY_PER_ROW_DEFAULT,
+ GALLERY_PER_ROW_MAX)
from browser.gtk_helpers import add_button, OR_H, OR_V
from browser.types import ItemsAttrs, AttrValsByVisibility
from stable.gen_params import (
self._btn_by_1st = add_button(per_row_box, 'by 1st sorter',
toggle_by_1st, checkbox=True)
self._btn_per_row = Gtk.SpinButton.new_with_range(
- GALLERY_PER_ROW_DEFAULT, 9, 1)
+ 1, GALLERY_PER_ROW_MAX, 1)
+ self._btn_per_row.set_value(GALLERY_PER_ROW_DEFAULT)
per_row_box.append(self._btn_per_row)
box.append(self.sorter_listing)