From 0fda06a15d14b5a7b8028afc32a6a8684657fc9d Mon Sep 17 00:00:00 2001 From: Reimund Trost Date: Thu, 3 May 2012 22:57:58 +0200 Subject: [PATCH] Make margins on toggle buttons 2 px smaller on CS6. --- README.md | 2 +- .../Locales/sv_SE/dictionary.xml | 83 ++++++++++++++++++- Tych Panel.gpc | 3 +- scripts/Tych Panel/Tych Panel Options.jsx | 11 ++- 4 files changed, 93 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 493dae4..d99b54d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Tych Panel Version 2.0.0 - Mon 26 March 2012 by Reimund Trost - +Website Description ----------- diff --git a/Tych Panel.assets/Locales/sv_SE/dictionary.xml b/Tych Panel.assets/Locales/sv_SE/dictionary.xml index 9c8967f..3a0e692 100644 --- a/Tych Panel.assets/Locales/sv_SE/dictionary.xml +++ b/Tych Panel.assets/Locales/sv_SE/dictionary.xml @@ -1,5 +1,11 @@ + + Kör funktionsmakro för Photoshop + + + Funktionsmakro + Kör JavaScript @@ -9,6 +15,9 @@ Kör JavaScript + + Kör JavaScript + Load into stack @@ -18,6 +27,12 @@ Skript + + Skript + + + Kör JavaScript-fil + Kör JavaScript-fil @@ -42,6 +57,9 @@ Kör JavaScript-fil + + Skriptfil + Skriptfil @@ -72,33 +90,57 @@ True + + False + False True + + True + True + + True + True + + True + True + + True + True + + True + True + + True + True True + + True + True @@ -132,6 +174,9 @@ True + + True + @@ -144,6 +189,12 @@ /Applications/Adobe Photoshop CS5/Presets/Scripts/rtTych.jsx + + + + + /Users/reimund/Projects/tychpanel/repository/Tych Panel.assets/media/img/add-row-top.png + @@ -153,12 +204,21 @@ + + + Tych Panel by Reimund Trost
 
Tych Panel by Reimund Trost ]]>
+ + + diptych1.png + + + @@ -177,6 +237,9 @@ + + ./tychpanel.html + @@ -189,6 +252,9 @@ + + + @@ -205,7 +271,10 @@ - /Applications/Adobe Photoshop CS5/Presets/Scripts/Load Files into Stack.jsx + + + + Gå tillbaka till föregående sida @@ -249,10 +318,22 @@ Klicka för att testa anslutning + + + + + Panelen det hänvisas till är ogiltig. + SWF- eller bildinläsare SWF-innehållet kan visas i förhandsvisningsgränssnittet eller när panelen exporteras till produkten. + + Hide Kuler + + + Hide Kuler +
\ No newline at end of file diff --git a/Tych Panel.gpc b/Tych Panel.gpc index 40dcdab..9ed883e 100644 --- a/Tych Panel.gpc +++ b/Tych Panel.gpc @@ -1,5 +1,6 @@ + @@ -16,4 +17,4 @@ - \ No newline at end of file + diff --git a/scripts/Tych Panel/Tych Panel Options.jsx b/scripts/Tych Panel/Tych Panel Options.jsx index 0fb7999..be552df 100644 --- a/scripts/Tych Panel/Tych Panel Options.jsx +++ b/scripts/Tych Panel/Tych Panel Options.jsx @@ -984,6 +984,11 @@ function open_url(url) */ IconButton.prototype.toggle = function() { + var version, d; + + // If we're on Photoshop CS6 or higher, the margin should be 2 pixels less. + version = app.version.split('.'); + d = version[0] < 13 ? 0 : 2; // Use larger graphic for appearance button. Yeah it's butt ugly. if (this.title == 'Appearance') { @@ -993,7 +998,7 @@ IconButton.prototype.toggle = function() else this.image = toggle_down; - this.bounds = [0, 0, 100, 23]; + this.bounds = [0, 0, 100 - d, 23 - d]; } else { @@ -1002,11 +1007,11 @@ IconButton.prototype.toggle = function() else this.image = toggle_down_small; - this.bounds = [0, 0, 74, 23]; + this.bounds = [0, 0, 74 - d, 23 - d]; } this.margins = [0, 0, 0, 0]; - this.titleLayout = { alignment: ['center', 'center'], margins: [2, 2, 2, 2] } + this.titleLayout = { alignment: ['center', 'center'], margins: [2 - d, 2 - d, 2 - d, 2 - d] } this.pressed = this.pressed == undefined ? true : !this.pressed; }