mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 14:03:23 -07:00
Preparations for the language changes
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1785 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
72b3f774ce
commit
75b0204c57
10 changed files with 161 additions and 154 deletions
|
@ -32,13 +32,13 @@ namespace Greenshot {
|
|||
/// <summary>
|
||||
/// Description of ColorDialog.
|
||||
/// </summary>
|
||||
public partial class ColorDialog {
|
||||
public partial class ColorDialog : BaseForm {
|
||||
private static ColorDialog uniqueInstance;
|
||||
private static EditorConfiguration editorConfiguration = IniConfig.GetIniSection<EditorConfiguration>();
|
||||
|
||||
private ColorDialog() {
|
||||
this.SuspendLayout();
|
||||
InitializeComponent();
|
||||
updateUI();
|
||||
this.SuspendLayout();
|
||||
this.createColorPalette(5,5,15,15);
|
||||
this.createLastUsedColorButtonRow(5,190,15,15);
|
||||
|
@ -63,18 +63,6 @@ namespace Greenshot {
|
|||
set {previewColor(value,this);}
|
||||
}
|
||||
|
||||
private void updateUI() {
|
||||
this.Text = Language.GetString(LangKey.colorpicker_title);
|
||||
this.btnApply.Text = Language.GetString(LangKey.colorpicker_apply);
|
||||
this.btnTransparent.Text = Language.GetString(LangKey.colorpicker_transparent);
|
||||
this.labelHtmlColor.Text = Language.GetString(LangKey.colorpicker_htmlcolor);
|
||||
this.labelRed.Text = Language.GetString(LangKey.colorpicker_red);
|
||||
this.labelGreen.Text = Language.GetString(LangKey.colorpicker_green);
|
||||
this.labelBlue.Text = Language.GetString(LangKey.colorpicker_blue);
|
||||
this.labelAlpha.Text = Language.GetString(LangKey.colorpicker_alpha);
|
||||
this.labelRecentColors.Text = Language.GetString(LangKey.colorpicker_recentcolors);
|
||||
}
|
||||
|
||||
#region user interface generation
|
||||
private void createColorPalette(int x, int y, int w, int h) {
|
||||
this.createColorButtonColumn(255,0,0, x, y, w, h, 11);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue