mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 16:45:12 +00:00
Use extern with custom font variables (#7)
This commit is contained in:
@@ -164,22 +164,22 @@ Application::~Application() {
|
|||||||
void Application::run() {
|
void Application::run() {
|
||||||
KotatoSettings::Start();
|
KotatoSettings::Start();
|
||||||
if (!cMainFont().isEmpty()) {
|
if (!cMainFont().isEmpty()) {
|
||||||
style::internal::SetMainFont(cMainFont());
|
style::internal::CustomMainFont = cMainFont();
|
||||||
}
|
}
|
||||||
if (!cSemiboldFont().isEmpty()) {
|
if (!cSemiboldFont().isEmpty()) {
|
||||||
style::internal::SetSemiboldFont(cSemiboldFont());
|
style::internal::CustomSemiboldFont = cSemiboldFont();
|
||||||
}
|
}
|
||||||
if (cSemiboldFontIsBold()) {
|
if (cSemiboldFontIsBold()) {
|
||||||
style::internal::SetSemiboldIsBold(cSemiboldFontIsBold());
|
style::internal::CustomSemiboldIsBold = cSemiboldFontIsBold();
|
||||||
}
|
}
|
||||||
if (!cMonospaceFont().isEmpty()) {
|
if (!cMonospaceFont().isEmpty()) {
|
||||||
style::internal::SetMonospaceFont(cMonospaceFont());
|
style::internal::CustomMonospaceFont = cMonospaceFont();
|
||||||
}
|
}
|
||||||
if (cUseSystemFont()) {
|
if (cUseSystemFont()) {
|
||||||
style::internal::SetUseSystemFont(cUseSystemFont());
|
style::internal::UseSystemFont = cUseSystemFont();
|
||||||
}
|
}
|
||||||
if (cUseOriginalMetrics()) {
|
if (cUseOriginalMetrics()) {
|
||||||
style::internal::SetUseOriginalMetrics(cUseOriginalMetrics());
|
style::internal::UseOriginalMetrics = cUseOriginalMetrics();
|
||||||
}
|
}
|
||||||
style::internal::StartFonts();
|
style::internal::StartFonts();
|
||||||
|
|
||||||
|
Submodule Telegram/lib_ui updated: 8ce091c159...e6fdff4597
Reference in New Issue
Block a user