#include "app/editor/ui/welcome_screen.h"
#include <algorithm>
#include <chrono>
#include <cmath>
#include <filesystem>
#include <fstream>
#include <string_view>
#include "absl/strings/str_format.h"
#include "absl/time/clock.h"
#include "absl/time/time.h"
#include "app/gui/core/icons.h"
#include "app/gui/core/theme_manager.h"
#include "app/platform/timing.h"
#include "core/project.h"
#include "imgui/imgui.h"
#include "imgui/imgui_internal.h"
#include "util/file_util.h"
Go to the source code of this file.
|
| #define | M_PI 3.14159265358979323846 |
| |
|
| ImVec4 | yaze::editor::anonymous_namespace{welcome_screen.cc}::GetThemedColor (const char *color_name, const ImVec4 &fallback) |
| |
| std::string | yaze::editor::anonymous_namespace{welcome_screen.cc}::GetRelativeTimeString (const std::filesystem::file_time_type &ftime) |
| |
| void | yaze::editor::anonymous_namespace{welcome_screen.cc}::DrawTriforceBackground (ImDrawList *draw_list, ImVec2 pos, float size, float alpha, float glow) |
| |
| GridLayout | yaze::editor::anonymous_namespace{welcome_screen.cc}::ComputeGridLayout (float avail_width, float min_width, float max_width, float min_height, float max_height, float preferred_width, float aspect_ratio, float spacing) |
| |
|
| const ImVec4 | yaze::editor::anonymous_namespace{welcome_screen.cc}::kTriforceGoldFallback = ImVec4(1.0f, 0.843f, 0.0f, 1.0f) |
| |
| const ImVec4 | yaze::editor::anonymous_namespace{welcome_screen.cc}::kHyruleGreenFallback = ImVec4(0.133f, 0.545f, 0.133f, 1.0f) |
| |
| const ImVec4 | yaze::editor::anonymous_namespace{welcome_screen.cc}::kMasterSwordBlueFallback = ImVec4(0.196f, 0.6f, 0.8f, 1.0f) |
| |
| const ImVec4 | yaze::editor::anonymous_namespace{welcome_screen.cc}::kGanonPurpleFallback = ImVec4(0.502f, 0.0f, 0.502f, 1.0f) |
| |
| const ImVec4 | yaze::editor::anonymous_namespace{welcome_screen.cc}::kHeartRedFallback = ImVec4(0.863f, 0.078f, 0.235f, 1.0f) |
| |
| const ImVec4 | yaze::editor::anonymous_namespace{welcome_screen.cc}::kSpiritOrangeFallback = ImVec4(1.0f, 0.647f, 0.0f, 1.0f) |
| |
| const ImVec4 | yaze::editor::anonymous_namespace{welcome_screen.cc}::kShadowPurpleFallback = ImVec4(0.416f, 0.353f, 0.804f, 1.0f) |
| |
| constexpr float | yaze::editor::anonymous_namespace{welcome_screen.cc}::kRecentCardBaseWidth = 220.0f |
| |
| constexpr float | yaze::editor::anonymous_namespace{welcome_screen.cc}::kRecentCardBaseHeight = 95.0f |
| |
| constexpr float | yaze::editor::anonymous_namespace{welcome_screen.cc}::kRecentCardWidthMaxFactor = 1.25f |
| |
| constexpr float | yaze::editor::anonymous_namespace{welcome_screen.cc}::kRecentCardHeightMaxFactor = 1.25f |
| |
| ImVec4 | yaze::editor::anonymous_namespace{welcome_screen.cc}::kTriforceGold = kTriforceGoldFallback |
| |
| ImVec4 | yaze::editor::anonymous_namespace{welcome_screen.cc}::kHyruleGreen = kHyruleGreenFallback |
| |
| ImVec4 | yaze::editor::anonymous_namespace{welcome_screen.cc}::kMasterSwordBlue = kMasterSwordBlueFallback |
| |
| ImVec4 | yaze::editor::anonymous_namespace{welcome_screen.cc}::kGanonPurple = kGanonPurpleFallback |
| |
| ImVec4 | yaze::editor::anonymous_namespace{welcome_screen.cc}::kHeartRed = kHeartRedFallback |
| |
| ImVec4 | yaze::editor::anonymous_namespace{welcome_screen.cc}::kSpiritOrange = kSpiritOrangeFallback |
| |
| ImVec4 | yaze::editor::anonymous_namespace{welcome_screen.cc}::kShadowPurple = kShadowPurpleFallback |
| |
◆ M_PI
| #define M_PI 3.14159265358979323846 |