Skip to content

Commit

Permalink
Napari GUI: Fix font size for sliders, fix #213
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-yu committed Apr 28, 2024
1 parent 1bdb5e1 commit 800d49e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plantseg/viewer/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
from plantseg.viewer.widget.segmentation import widget_simple_dt_ws
from plantseg.viewer.widget.segmentation import widget_extra_seg_manager

STYLE_SLIDER = "font-size: 9pt;"


def setup_menu(container, path=None):
def _callback():
Expand Down Expand Up @@ -46,6 +48,7 @@ def get_main():


def get_preprocessing_workflow():
widget_cropping.crop_z.native.setStyleSheet(STYLE_SLIDER)
container = MainWindow(widgets=[widget_gaussian_smoothing,
widget_rescaling,
widget_cropping,
Expand All @@ -66,6 +69,8 @@ def get_gasp_workflow():


def get_extra_seg():
widget_fix_over_under_segmentation_from_nuclei.threshold.native.setStyleSheet(STYLE_SLIDER)
widget_fix_over_under_segmentation_from_nuclei.quantile.native.setStyleSheet(STYLE_SLIDER)
container = MainWindow(widgets=[widget_extra_seg_manager,
widget_dt_ws,
widget_lifted_multicut,
Expand Down

0 comments on commit 800d49e

Please sign in to comment.