mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Replaced the EnableButtonScaling with the possibility to specify the ButtonIconSize directly. Also removed a lot of the fixed size, as they are calculated correctly. Changed the background of the Toolstrips to System.Drawing.SystemColors.Control.
This commit is contained in:
parent
7fdd324ef0
commit
634a4cf262
3 changed files with 87 additions and 231 deletions
|
@ -263,11 +263,11 @@ namespace Greenshot {
|
|||
}
|
||||
};
|
||||
|
||||
toolStrip1.Items.Insert(toolStrip1.Items.IndexOf(toolStripSeparator16), destinationButton);
|
||||
destinationsToolStrip.Items.Insert(destinationsToolStrip.Items.IndexOf(toolStripSeparator16), destinationButton);
|
||||
|
||||
} else {
|
||||
ToolStripButton destinationButton = new ToolStripButton();
|
||||
toolStrip1.Items.Insert(toolStrip1.Items.IndexOf(toolStripSeparator16), destinationButton);
|
||||
destinationsToolStrip.Items.Insert(destinationsToolStrip.Items.IndexOf(toolStripSeparator16), destinationButton);
|
||||
destinationButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
|
||||
destinationButton.Size = new Size(23, 22);
|
||||
destinationButton.Text = toolstripDestination.Description;
|
||||
|
@ -1025,8 +1025,8 @@ namespace Greenshot {
|
|||
// disable most controls
|
||||
if(!controlsDisabledDueToConfirmable) {
|
||||
ToolStripItemEndisabler.Disable(menuStrip1);
|
||||
ToolStripItemEndisabler.Disable(toolStrip1);
|
||||
ToolStripItemEndisabler.Disable(toolStrip2);
|
||||
ToolStripItemEndisabler.Disable(destinationsToolStrip);
|
||||
ToolStripItemEndisabler.Disable(toolsToolStrip);
|
||||
ToolStripItemEndisabler.Enable(closeToolStripMenuItem);
|
||||
ToolStripItemEndisabler.Enable(helpToolStripMenuItem);
|
||||
ToolStripItemEndisabler.Enable(aboutToolStripMenuItem);
|
||||
|
@ -1036,8 +1036,8 @@ namespace Greenshot {
|
|||
} else if(controlsDisabledDueToConfirmable) {
|
||||
// re-enable disabled controls, confirmable element has either been confirmed or cancelled
|
||||
ToolStripItemEndisabler.Enable(menuStrip1);
|
||||
ToolStripItemEndisabler.Enable(toolStrip1);
|
||||
ToolStripItemEndisabler.Enable(toolStrip2);
|
||||
ToolStripItemEndisabler.Enable(destinationsToolStrip);
|
||||
ToolStripItemEndisabler.Enable(toolsToolStrip);
|
||||
controlsDisabledDueToConfirmable = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue