Skip to content

Commit 8c8654b

Browse files
committed
fixed font size
1 parent 6775552 commit 8c8654b

4 files changed

Lines changed: 9 additions & 12 deletions

File tree

src/Server.UI/Services/Layout/LayoutService.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ private void UpdateCurrentTheme()
8686
// Update typography settings
8787
string defaultFontSize = FormatFontSize(UserPreferences.DefaultFontSize);
8888
CurrentTheme.Typography.Default.FontSize = defaultFontSize;
89-
CurrentTheme.Typography.Subtitle1.FontSize = defaultFontSize;
9089

9190
CurrentTheme.Typography.Button.FontSize = FormatFontSize(UserPreferences.ButtonFontSize);
9291
CurrentTheme.Typography.Button.LineHeight = UserPreferences.ButtonLineHeight.ToString();
@@ -116,9 +115,8 @@ private void UpdateCurrentTheme()
116115
CurrentTheme.Typography.Overline.LineHeight = UserPreferences.OverlineLineHeight.ToString();
117116

118117
// Subtitles
119-
string subtitleFontSize = FormatFontSize(UserPreferences.Subtitle1FontSize);
120-
CurrentTheme.Typography.Subtitle1.FontSize = subtitleFontSize;
121-
CurrentTheme.Typography.Subtitle2.FontSize = subtitleFontSize;
118+
CurrentTheme.Typography.Subtitle1.FontSize = FormatFontSize(UserPreferences.Subtitle1FontSize);
119+
CurrentTheme.Typography.Subtitle2.FontSize = FormatFontSize(UserPreferences.Subtitle2FontSize); ;
122120
}
123121

124122
/// <summary>

src/Server.UI/Services/UserPreferences/UserPreference.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ public class UserPreference
126126
public double OverlineLineHeight => LineHeight;
127127

128128
// Subtitle text properties
129-
public double Subtitle1FontSize => DefaultFontSize + 0.125;
130-
public double Subtitle2FontSize => DefaultFontSize - 0.0625;
129+
public double Subtitle1FontSize => DefaultFontSize;
130+
public double Subtitle2FontSize => DefaultFontSize + 0.125;
131131

132132
/// <summary>
133133
/// The theme mode (System, Light, or Dark).

src/Server.UI/Themes/Theme.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@ public static MudTheme ApplicationTheme()
138138
},
139139
Subtitle1 = new Subtitle1Typography
140140
{
141-
FontSize = ".875rem",
142-
FontWeight = "500",
141+
FontSize = ".8125rem",
142+
FontWeight = "400",
143143
LineHeight = "1.5",
144144
LetterSpacing = "normal",
145145
},
146146
Subtitle2 = new Subtitle2Typography
147147
{
148-
FontSize = ".8125rem",
148+
FontSize = ".875rem",
149149
FontWeight = "500",
150150
LineHeight = "1.57",
151151
},

src/Server.UI/wwwroot/css/app.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,16 @@
2020
}
2121

2222
.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
23-
font-size: var(--mud-typography-subtitle1-size);
23+
font-size: var(--mud-typography-subtitle1-size) !important;
2424
}
2525
.mud-input > input.mud-input-root, div.mud-input-slot.mud-input-root {
2626
font-size: var(--mud-typography-default-size) !important;
2727
}
2828
.mud-input > textarea.mud-input-root {
2929
font-size: var(--mud-typography-default-size) !important;
3030
}
31-
.mud-simple-table table * tr > td, .mud-simple-table table * tr th {
31+
.mud-simple-table table * tr > td, .mud-simple-table table * tr th {
3232
font-size: var(--mud-typography-default-size) !important;
33-
3433
}
3534

3635
.mud-expand-panel .mud-expand-panel-header {

0 commit comments

Comments
 (0)