Skip to content

Commit

Permalink
gui1: Use a new font measurement for buttons to match GUI2
Browse files Browse the repository at this point in the history
  • Loading branch information
irydacea committed Mar 19, 2021
1 parent b157d8b commit 6a257b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/font/constants.cpp
Expand Up @@ -21,6 +21,7 @@ const int SIZE_NORMAL = 17;
const int
SIZE_TINY = 13 * (SIZE_NORMAL / 17),
SIZE_SMALL = 15 * (SIZE_NORMAL / 17),
SIZE_BUTTON = 16 * (SIZE_NORMAL / 17),

SIZE_15 = 15 * (SIZE_NORMAL / 17),
SIZE_PLUS = 18 * (SIZE_NORMAL / 17),
Expand Down
2 changes: 1 addition & 1 deletion src/font/constants.hpp
Expand Up @@ -21,7 +21,7 @@ namespace font {
// font sizes, to be made theme parameters
extern const int SIZE_NORMAL;
// automatic computation of other font sizes, to be made a default for theme-provided values
extern const int SIZE_TINY, SIZE_SMALL,
extern const int SIZE_TINY, SIZE_SMALL, SIZE_BUTTON,
SIZE_15, SIZE_PLUS, SIZE_LARGE, SIZE_TITLE, SIZE_XLARGE;

// For arbitrary scaling:
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/button.cpp
Expand Up @@ -36,7 +36,7 @@ static lg::log_domain log_display("display");

namespace gui {

const int font_size = font::SIZE_NORMAL;
const int font_size = font::SIZE_BUTTON;
const int horizontal_padding = font::SIZE_SMALL;
const int checkbox_horizontal_padding = font::SIZE_SMALL / 2;
const int vertical_padding = font::SIZE_SMALL / 2;
Expand Down

0 comments on commit 6a257b6

Please sign in to comment.