theme.c (b319d934379f5b819cd195be7e03dbd407566fd4) | theme.c (84823cc70824c8d842f503d8c2e6d7b0c2d95b61) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2021-2022 Alfonso Sabato Siciliano 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 244 unchanged lines hidden (view full) --- 253 254 set_theme(&t, theme); 255 256 return (BSDDIALOG_OK); 257} 258 259int bsddialog_set_default_theme(enum bsddialog_default_theme newtheme) 260{ | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2021-2022 Alfonso Sabato Siciliano 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 244 unchanged lines hidden (view full) --- 253 254 set_theme(&t, theme); 255 256 return (BSDDIALOG_OK); 257} 258 259int bsddialog_set_default_theme(enum bsddialog_default_theme newtheme) 260{ |
261 | |
262 if (newtheme == BSDDIALOG_THEME_FLAT) { 263 bsddialog_set_theme(&dialogtheme); 264 t.dialog.lineraisecolor = t.dialog.linelowercolor; 265 t.dialog.delimtitle = true; 266 t.button.leftdelim = '['; 267 t.button.rightdelim = ']'; 268 t.dialog.bottomtitlecolor = GET_COLOR(COLOR_BLACK, COLOR_WHITE); 269 } --- 56 unchanged lines hidden --- | 261 if (newtheme == BSDDIALOG_THEME_FLAT) { 262 bsddialog_set_theme(&dialogtheme); 263 t.dialog.lineraisecolor = t.dialog.linelowercolor; 264 t.dialog.delimtitle = true; 265 t.button.leftdelim = '['; 266 t.button.rightdelim = ']'; 267 t.dialog.bottomtitlecolor = GET_COLOR(COLOR_BLACK, COLOR_WHITE); 268 } --- 56 unchanged lines hidden --- |