From c887ae6fa7eb5aaca460f2b3e6a3e5c5d810a353 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Wed, 17 Jan 2024 10:02:55 -0500 Subject: [PATCH] reduce default font size --- modules/processing.py | 4 ++-- modules/shared.py | 2 +- wiki | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/processing.py b/modules/processing.py index 4c8b26fee..cc5c92d2c 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -632,8 +632,8 @@ def create_infotext(p: StableDiffusionProcessing, all_prompts=None, all_seeds=No if 'txt2img' in p.ops: pass if shared.backend == shared.Backend.ORIGINAL: - args["Variation seed"] = None if p.subseed_strength == 0 else all_subseeds[index], - args["Variation strength"] = None if p.subseed_strength == 0 else p.subseed_strength, + args["Variation seed"] = all_subseeds[index] if p.subseed_strength > 0 else None + args["Variation strength"] = p.subseed_strength if p.subseed_strength > 0 else None if 'hires' in p.ops or 'upscale' in p.ops: args["Second pass"] = p.enable_hr args["Hires force"] = p.hr_force diff --git a/modules/shared.py b/modules/shared.py index 1e5b86ac5..6f4520574 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -505,7 +505,7 @@ options_templates.update(options_section(('ui', "User Interface"), { "motd": OptionInfo(True, "Show MOTD"), "gradio_theme": OptionInfo("black-teal", "UI theme", gr.Dropdown, lambda: {"choices": theme.list_themes()}, refresh=theme.refresh_themes), "theme_style": OptionInfo("Auto", "Theme mode", gr.Radio, {"choices": ["Auto", "Dark", "Light"]}), - "font_size": OptionInfo(16, "Font size", gr.Slider, {"minimum": 8, "maximum": 32, "step": 1, "visible": True}), + "font_size": OptionInfo(14, "Font size", gr.Slider, {"minimum": 8, "maximum": 32, "step": 1, "visible": True}), "tooltips": OptionInfo("UI Tooltips", "UI tooltips", gr.Radio, {"choices": ["None", "Browser default", "UI tooltips"], "visible": False}), "gallery_height": OptionInfo("", "Gallery height", gr.Textbox), "compact_view": OptionInfo(False, "Compact view"), diff --git a/wiki b/wiki index 7a5d11c69..783f44b49 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit 7a5d11c69feece623326cf7586fb01a867eb6e90 +Subproject commit 783f44b492c00b79a0def833f83fd2e72c47a95e