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

Commit

Permalink
added change font sizes and picture size
Browse files Browse the repository at this point in the history
  • Loading branch information
sametcn99 committed Jan 16, 2023
1 parent e3fb9bf commit f47de76
Show file tree
Hide file tree
Showing 10 changed files with 414 additions and 87 deletions.
9 changes: 9 additions & 0 deletions ResumeBuilder/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@
<setting name="skillsTitleLanguage" serializeAs="String">
<value>SKILLS</value>
</setting>
<setting name="titleFontSize" serializeAs="String">
<value>13</value>
</setting>
<setting name="detailFontSize" serializeAs="String">
<value>11</value>
</setting>
<setting name="pictureSize" serializeAs="String">
<value>150</value>
</setting>
</ResumeBuilder.Properties.Settings>
</userSettings>
</configuration>
67 changes: 66 additions & 1 deletion ResumeBuilder/LayoutForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 32 additions & 1 deletion ResumeBuilder/LayoutForm.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace ResumeBuilder
using ResumeBuilder.Properties;

namespace ResumeBuilder
{
public partial class LayoutForm : Form
{
Expand All @@ -7,11 +9,40 @@ public partial class LayoutForm : Form
public LayoutForm()
{
InitializeComponent();
titleFontSizeTextBox.Text = Settings.Default.titleFontSize.ToString();
detailFontSizeTextBox.Text = Settings.Default.detailFontSize.ToString();
pictureSizeTextBox.Text = Settings.Default.pictureSize.ToString();
}

private void layoutStylesCombobox_SelectedIndexChanged(object sender, EventArgs e)
{
selectedLayout = layoutStylesCombobox.SelectedIndex.ToString();
}

private void resetButton_Click(object sender, EventArgs e)
{
Settings.Default.titleFontSize = 13;
Settings.Default.detailFontSize = 11;
Settings.Default.pictureSize = 150;
titleFontSizeTextBox.Text = Settings.Default.titleFontSize.ToString();
detailFontSizeTextBox.Text = Settings.Default.detailFontSize.ToString();
pictureSizeTextBox.Text = Settings.Default.pictureSize.ToString();
}

private void titleFontSizeTextBox_TextChanged(object sender, EventArgs e)
{
Settings.Default.titleFontSize = (int)Settings.Default.titleFontSize;
}

private void detailFontSizeTextBox_TextChanged(object sender, EventArgs e)
{
Settings.Default.detailFontSize = (int)Settings.Default.detailFontSize;

}

private void pictureSizeTextBox_TextChanged(object sender, EventArgs e)
{
Settings.Default.pictureSize = (int)Settings.Default.pictureSize;
}
}
}
Loading

0 comments on commit f47de76

Please sign in to comment.