Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do I remove the grey border from my iconbutton

Community Beginner ,
Feb 17, 2021 Feb 17, 2021

Hi All

 

How do I remove the grey outline border from my iconbutton?

 

C3.JPG

function Comp_Resizer(thisObj)
	{
		function buildUI_res(winType)
		{
			var pal = (winType instanceof Panel) ? winType : new Window(winType, "Comp_Resizer", undefined, { resizeable:true } );
                    if (pal != null) {		
                        var res = 
                        "group{orientation:'column', alignment:['left', 'top'], alignChildren:['left', 'left'],\
                                increaseLButton:IconButton{ size:[26,25], style:'toolbutton',},\
                           }";
 
                      var container = pal.myGroup = pal.add(res);
                      
                      //Set Images for buttons
                      container.increaseLButton.image = ScriptUI.newImage ("C:/Program Files/Adobe/Adobe After Effects 2020/Support Files/Scripts/ScriptUI Panels/CompResizer/00.png");
                     
                        pal.layout.layout(true);
                        container.minimumSize = container.size;
                        
                        pal.onResizing = pal.onResize = function () { this.layout.resize(); }
                    }
			
			return pal;

 

TOPICS
Scripting
873
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Mar 08, 2021 Mar 08, 2021

You cannot get right of that gray outline, unless you use a full sized png without an alpha channel.

Translate
Advocate ,
Mar 08, 2021 Mar 08, 2021

You cannot get right of that gray outline, unless you use a full sized png without an alpha channel.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 09, 2021 Mar 09, 2021

Thank Tomas

That's what I ended up doing, just filling the icon with the AE background colour.

Marco5C6D_0-1615284254744.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Mar 09, 2021 Mar 09, 2021
LATEST

Teap, that's one way of doing that.

Although, having your buttons filled with AE UI color is not ideal, since user can always change the UI brightness in the AE Preferecens, but your buttons would still be dark-gray. But yeah, there's no way around this, unfortunatelly.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines