/
v-str
/
cerera_android
Обзор
Документация
Войти
/
v-str
/
cerera_android
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev
proj/include/common.hpp
38 строк
1 KB
v-str
Graceful TCP disconnect + TCP_NODELAY + чертежи CNC в freecad/
02 июл 2026, 19:34
Верифицирован
02 июл 2026, 19:34
a0f1e56
Код
Авторство
О чём код?
#pragma once #include <QColor> #include <QFont> #include <QFontDatabase> #include <QGuiApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <QVariantMap> inline QVariantMap createSpaceMillTheme() { QVariantMap theme; theme["spaceBg"] = QColor("#0A0E17"); theme["spaceSurface"] = QColor("#111827"); theme["spaceElement"] = QColor("#1F2937"); theme["spaceText"] = QColor("#F3F4F6"); theme["spaceTextMuted"] = QColor("#4B5563"); theme["spaceAccent"] = QColor("#00FFC6"); theme["spaceAccentPurple"] = QColor("#A855F7"); theme["spaceError"] = QColor("#FF4444"); theme["spaceWarning"] = QColor("#FFB800"); theme["spaceSuccess"] = QColor("#00C853"); theme["spaceSuccessMuted"] = QColor("#265A43"); theme["spaceBorder"] = QColor("#374151"); return theme; } inline void setupSpaceMillFont() { QFontDatabase::addApplicationFont(":/fonts/SourceCodePro-ExtraLight.otf"); QFont defaultFont("Source Code Pro"); QGuiApplication::setFont(defaultFont); } inline void setupSpaceMill(QQmlApplicationEngine& engine) { setupSpaceMillFont(); engine.rootContext()->setContextProperty("SpaceMill", createSpaceMillTheme()); }