| 1 | // SPDX-FileCopyrightText: 2026 Geoffrey D. Bennett <[email protected]> |
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <gtk/gtk.h> |
| 7 | |
| 8 | // Bold heading label, start-aligned. Suitable for use as a section |
| 9 | // heading. |
| 10 | GtkWidget *config_bold_label(const char *text); |
| 11 | |
| 12 | // Start-aligned, dim help text. Use this for help text that uses |
| 13 | // explicit newlines for layout (no automatic wrapping). |
| 14 | GtkWidget *config_help_label(const char *text); |
| 15 | |
| 16 | // Start-aligned, dim, wrap-enabled help text. max_chars caps the |
| 17 | // natural width so the description doesn't widen the window |
| 18 | // unnecessarily; pass -1 to leave the width uncapped. |
| 19 | GtkWidget *config_wrapped_help_label(const char *text, int max_chars); |
| 20 | |
| 21 | // Horizontal separator with a small margin above and below; appended |
| 22 | // to box. |
| 23 | void config_append_separator(GtkBox *box); |