diff options
author | B. Stack <bgstack15@gmail.com> | 2023-02-21 12:13:36 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2023-02-21 12:13:36 -0500 |
commit | 5a6ed4e8eadf3af3d141b246f124d67b62a1357c (patch) | |
tree | 4e49ae80efbe181c46110867fe7cf703efd3fcf5 /wx+/font_size.h | |
parent | argon2 copyright notice updated (diff) | |
download | FreeFileSync-5a6ed4e8eadf3af3d141b246f124d67b62a1357c.tar.gz FreeFileSync-5a6ed4e8eadf3af3d141b246f124d67b62a1357c.tar.bz2 FreeFileSync-5a6ed4e8eadf3af3d141b246f124d67b62a1357c.zip |
add upstream 12.112.1
Diffstat (limited to 'wx+/font_size.h')
-rw-r--r-- | wx+/font_size.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/wx+/font_size.h b/wx+/font_size.h deleted file mode 100644 index da74eada..00000000 --- a/wx+/font_size.h +++ /dev/null @@ -1,52 +0,0 @@ -// ***************************************************************************** -// * This file is part of the FreeFileSync project. It is distributed under * -// * GNU General Public License: https://www.gnu.org/licenses/gpl-3.0 * -// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved * -// ***************************************************************************** - -#ifndef FONT_SIZE_H_23849632846734343234532 -#define FONT_SIZE_H_23849632846734343234532 - -#include <zen/basic_math.h> -#include <wx/window.h> -#include <zen/scope_guard.h> -#include "dc.h" - - -namespace zen -{ -//set portable font size in multiples of the operating system's default font size -void setRelativeFontSize(wxWindow& control, double factor); -void setMainInstructionFont(wxWindow& control); //following Windows/Gnome/OS X guidelines - - - - - - - - - - -//###################### implementation ##################### -inline -void setRelativeFontSize(wxWindow& control, double factor) -{ - wxFont font = control.GetFont(); - font.SetPointSize(std::round(wxNORMAL_FONT->GetPointSize() * factor)); - control.SetFont(font); -} - - -inline -void setMainInstructionFont(wxWindow& control) -{ - wxFont font = control.GetFont(); - font.SetPointSize(std::round(wxNORMAL_FONT->GetPointSize() * 12.0 / 11)); - font.SetWeight(wxFONTWEIGHT_BOLD); - - control.SetFont(font); -} -} - -#endif //FONT_SIZE_H_23849632846734343234532 |