mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Added icons for the new tools, also changed some of the logic so it is possible to show the number of the next "label" in the tool button.
This commit is contained in:
parent
48187fcdba
commit
b37ed3562d
32 changed files with 187 additions and 65 deletions
|
@ -996,6 +996,12 @@ namespace Greenshot {
|
|||
/// refreshes all editor controls depending on selected elements and their fields
|
||||
/// </summary>
|
||||
private void refreshEditorControls() {
|
||||
int stepLabels = surface.CountStepLabels(null);
|
||||
if (stepLabels <= 20) {
|
||||
this.btnStepLabel.Image = ((System.Drawing.Image)(resources.GetObject(string.Format("btnStepLabel{0:00}.Image", stepLabels))));
|
||||
} else {
|
||||
this.btnStepLabel.Image = ((System.Drawing.Image)(resources.GetObject("btnStepLabel20+.Image")));
|
||||
}
|
||||
FieldAggregator props = surface.FieldAggregator;
|
||||
// if a confirmable element is selected, we must disable most of the controls
|
||||
// since we demand confirmation or cancel for confirmable element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue