mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Next step for having the settings of effects stored in the greenshot.ini, using a TypeConverter this seems to work. An important change to the IniValue.cs: here a default value is created when the ini doesn't have a value yet. This used to be just "null". Next step would be that settings forms get a reset/default button. [skip ci]
This commit is contained in:
parent
941551945d
commit
8cb2dedb87
8 changed files with 263 additions and 44 deletions
|
@ -1253,7 +1253,7 @@ namespace Greenshot {
|
|||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void AddDropshadowToolStripMenuItemClick(object sender, EventArgs e) {
|
||||
DropShadowEffect dropShadowEffect= new DropShadowEffect();
|
||||
DropShadowEffect dropShadowEffect = editorConfiguration.DropShadowEffectSettings;
|
||||
// TODO: Use the dropshadow settings form to make it possible to change the default values
|
||||
DialogResult result = new DropShadowSettingsForm(dropShadowEffect).ShowDialog(this);
|
||||
if (result == DialogResult.OK) {
|
||||
|
@ -1283,7 +1283,7 @@ namespace Greenshot {
|
|||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void TornEdgesToolStripMenuItemClick(object sender, EventArgs e) {
|
||||
TornEdgeEffect tornEdgeEffect = new TornEdgeEffect();
|
||||
TornEdgeEffect tornEdgeEffect = editorConfiguration.TornEdgeEffectSettings;
|
||||
// TODO: Use the dropshadow settings form to make it possible to change the default values
|
||||
DialogResult result = new TornEdgeSettingsForm(tornEdgeEffect).ShowDialog(this);
|
||||
if (result == DialogResult.OK) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue