Skip to content
This repository was archived by the owner on Jun 9, 2024. It is now read-only.

Commit f47de76

Browse files
committed
added change font sizes and picture size
1 parent e3fb9bf commit f47de76

File tree

10 files changed

+414
-87
lines changed

10 files changed

+414
-87
lines changed

ResumeBuilder/App.config

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@
3434
<setting name="skillsTitleLanguage" serializeAs="String">
3535
<value>SKILLS</value>
3636
</setting>
37+
<setting name="titleFontSize" serializeAs="String">
38+
<value>13</value>
39+
</setting>
40+
<setting name="detailFontSize" serializeAs="String">
41+
<value>11</value>
42+
</setting>
43+
<setting name="pictureSize" serializeAs="String">
44+
<value>150</value>
45+
</setting>
3746
</ResumeBuilder.Properties.Settings>
3847
</userSettings>
3948
</configuration>

ResumeBuilder/LayoutForm.Designer.cs

Lines changed: 66 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ResumeBuilder/LayoutForm.cs

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace ResumeBuilder
1+
using ResumeBuilder.Properties;
2+
3+
namespace ResumeBuilder
24
{
35
public partial class LayoutForm : Form
46
{
@@ -7,11 +9,40 @@ public partial class LayoutForm : Form
79
public LayoutForm()
810
{
911
InitializeComponent();
12+
titleFontSizeTextBox.Text = Settings.Default.titleFontSize.ToString();
13+
detailFontSizeTextBox.Text = Settings.Default.detailFontSize.ToString();
14+
pictureSizeTextBox.Text = Settings.Default.pictureSize.ToString();
1015
}
1116

1217
private void layoutStylesCombobox_SelectedIndexChanged(object sender, EventArgs e)
1318
{
1419
selectedLayout = layoutStylesCombobox.SelectedIndex.ToString();
1520
}
21+
22+
private void resetButton_Click(object sender, EventArgs e)
23+
{
24+
Settings.Default.titleFontSize = 13;
25+
Settings.Default.detailFontSize = 11;
26+
Settings.Default.pictureSize = 150;
27+
titleFontSizeTextBox.Text = Settings.Default.titleFontSize.ToString();
28+
detailFontSizeTextBox.Text = Settings.Default.detailFontSize.ToString();
29+
pictureSizeTextBox.Text = Settings.Default.pictureSize.ToString();
30+
}
31+
32+
private void titleFontSizeTextBox_TextChanged(object sender, EventArgs e)
33+
{
34+
Settings.Default.titleFontSize = (int)Settings.Default.titleFontSize;
35+
}
36+
37+
private void detailFontSizeTextBox_TextChanged(object sender, EventArgs e)
38+
{
39+
Settings.Default.detailFontSize = (int)Settings.Default.detailFontSize;
40+
41+
}
42+
43+
private void pictureSizeTextBox_TextChanged(object sender, EventArgs e)
44+
{
45+
Settings.Default.pictureSize = (int)Settings.Default.pictureSize;
46+
}
1647
}
1748
}

0 commit comments

Comments
 (0)