Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package/SKSE/Plugins/CommunityShaders/Themes/Default.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Version": "1.0.0",
"Author": "Community Shaders Team",
"Theme": {
"FontSize": 27.0,
"FontSize": 0.0,
"FontName": "Jost/Jost-Regular.ttf",
"GlobalScale": 0.0,
"FontRoles": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Version": "1.0.0",
"Author": "Community Shaders Team",
"Theme": {
"FontSize": 27.0,
"FontSize": 0.0,
"FontName": "Jost/Jost-Regular.ttf",
"GlobalScale": 0.0,
"FontRoles": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Version": "1.0.0",
"Author": "Community Shaders Team",
"Theme": {
"FontSize": 27.0,
"FontSize": 0.0,
"FontName": "Jost/Jost-Regular.ttf",
"GlobalScale": 0.0,
"FontRoles": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Version": "1.0.0",
"Author": "Community Shaders Team",
"Theme": {
"FontSize": 27.0,
"FontSize": 0.0,
"FontName": "Jost/Jost-Regular.ttf",
"GlobalScale": 0.0,
"FontRoles": [
Expand Down
2 changes: 1 addition & 1 deletion package/SKSE/Plugins/CommunityShaders/Themes/Light.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Version": "1.0.0",
"Author": "Community Shaders Team",
"Theme": {
"FontSize": 27.0,
"FontSize": 0.0,
"FontName": "Jost/Jost-Regular.ttf",
"GlobalScale": 0.0,
"FontRoles": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Version": "1.0.0",
"Author": "Community Shaders Team",
"Theme": {
"FontSize": 27.0,
"FontSize": 0.0,
"FontName": "Jost/Jost-Regular.ttf",
"GlobalScale": 0.0,
"FontRoles": [
Expand Down
8 changes: 4 additions & 4 deletions src/Menu/ThemeManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ class ThemeManager
struct Constants
{
// Font size constants
static constexpr float DEFAULT_SCREEN_HEIGHT = 1080.0f; // Default screen resolution to use for subsequent calculations
static constexpr float DEFAULT_FONT_RATIO = 0.025f; // Default 2.5% of screen height
static constexpr float MIN_FONT_SIZE = 16.0f; // ~1.5% @ 1080px height
static constexpr float MAX_FONT_SIZE = 108.0f; // 5.0% @ 2160px height
static constexpr float DEFAULT_SCREEN_HEIGHT = 1080.0f; // Default screen resolution to use for subsequent calculations
static constexpr float DEFAULT_FONT_RATIO = (7.0f / 360.0f); // 21px @ 1080p, 28px @ 1440p, 42px @ 4K
static constexpr float MIN_FONT_SIZE = 16.0f; // ~1.5% @ 1080px height
static constexpr float MAX_FONT_SIZE = 108.0f; // 5.0% @ 2160px height
static constexpr float DEFAULT_FONT_SIZE = 27.0f;
Comment thread
Dlizzio marked this conversation as resolved.
Comment thread
Dlizzio marked this conversation as resolved.

// Global scale constants
Expand Down