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

Flex 3: ColorPicker Customization

New Here ,
Nov 13, 2012 Nov 13, 2012

Copy link to clipboard

Copied

Hi,

I am using a ColorPicker control in Flex 3.6 project, and I want to customize it like this:

colorpicker.png

Basically removing the border from the ColorPicker selector button and reducing the gap size between the selector and swatch pallete to zero.

Is that possible at all?

I've searched all the attributes and styles of the ColorPicker w/o success...

Many thanks!

Ofer

TOPICS
Developers

Views

1.9K

Translate

Translate

Report

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
Contributor ,
Dec 04, 2012 Dec 04, 2012

Copy link to clipboard

Copied

Hello,

I am not sure if this works with 3.6, but in my 4.0 I have done like this.

  1. Add style (.css) to your project.
  2. Create PNG files as you want to show that color picker.
  3. Add follwing code to css file

.pickerSkin{

          up-skin: Embed(source='assets/icons/color-normal.png');

          down-skin: Embed(source='assets/icons/color-down.png');

          disabled-skin: Embed(source='assets/icons/color-disable.png');

          over-skin: Embed(source='assets/icons/color-over.png');

}

finaly add pickerSkin style name to that color picker.

I am not sure you can reduce that space.

Thanks,

Vikram

Votes

Translate

Translate

Report

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
Contributor ,
Dec 04, 2012 Dec 04, 2012

Copy link to clipboard

Copied

Make sure that some image part should be transparent to show the selected color.

Votes

Translate

Translate

Report

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
New Here ,
Dec 04, 2012 Dec 04, 2012

Copy link to clipboard

Copied

LATEST

Thank you very much Vikram!

I will try that and post back about the results.

Ofer

Votes

Translate

Translate

Report

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