Changeset 131554 in webkit


Ignore:
Timestamp:
Oct 17, 2012, 12:05:46 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Add background color to the radio button theme.
https://bugs.webkit.org/show_bug.cgi?id=98852

Patch by Byungwoo Lee <bw80.lee@samsung.com> on 2012-10-17
Reviewed by Gyuyoung Kim.

Background color is added to the radio button theme for identifying
radio button status easily.

Radio button theme uses images which has transparent background.

When the background of radio button is black, checked/unchecked status
cannot be distinguished because check mark color is black.

And it is hard to identify whether the radio button is disabled or not,
because there is no background color in the radio button theme.

  • DefaultTheme/widget/radio/img_radio_bg_disabled.png: Added.
  • DefaultTheme/widget/radio/img_radio_bg_enabled.png: Added.
  • DefaultTheme/widget/radio/radio.edc:
Location:
trunk/Source/WebKit/efl
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/efl/ChangeLog

    r131337 r131554  
     12012-10-17  Byungwoo Lee  <bw80.lee@samsung.com>
     2
     3        [EFL] Add background color to the radio button theme.
     4        https://bugs.webkit.org/show_bug.cgi?id=98852
     5
     6        Reviewed by Gyuyoung Kim.
     7
     8        Background color is added to the radio button theme for identifying
     9        radio button status easily.
     10
     11        Radio button theme uses images which has transparent background.
     12
     13        When the background of radio button is black, checked/unchecked status
     14        cannot be distinguished because check mark color is black.
     15
     16        And it is hard to identify whether the radio button is disabled or not,
     17        because there is no background color in the radio button theme.
     18
     19        * DefaultTheme/widget/radio/img_radio_bg_disabled.png: Added.
     20        * DefaultTheme/widget/radio/img_radio_bg_enabled.png: Added.
     21        * DefaultTheme/widget/radio/radio.edc:
     22
    1232012-10-15  Christophe Dumez  <christophe.dumez@intel.com>
    224
  • trunk/Source/WebKit/efl/DefaultTheme/widget/radio/radio.edc

    r65262 r131554  
    2525
    2626      images {
     27         image: "widget/radio/img_radio_bg_enabled.png" COMP;
     28         image: "widget/radio/img_radio_bg_disabled.png" COMP;
    2729         image: "widget/radio/img_radio_on.png" COMP;
    2830         image: "widget/radio/img_radio_off.png" COMP;
     
    4345              if (get_int(isEnabled) == 1) {
    4446                  set_state(PART:"radio_button", "default", 0.0);
     47                  set_state(PART:"bg", "enabled", 0.0);
    4548                  if (get_int(isChecked) == 1) {
    4649                      set_state(PART:"radio_button", "enabled_checked", 0.0);
     
    5962              else {
    6063                  set_state(PART:"radio_button", "disabled", 0.0);
     64                  set_state(PART:"bg", "disabled", 0.0);
    6165                  if (get_int(isChecked) == 1)
    6266                      set_state(PART:"radio_button", "disabled_checked", 0.0);
     
    6670
    6771      parts {
     72         part {
     73            name: "bg";
     74            type: IMAGE;
     75            description {
     76               state: "default" 0.0;
     77               min: 12 12;
     78               max: 12 12;
     79               image {
     80                  normal: "widget/radio/img_radio_bg_enabled.png";
     81               }
     82            }
     83            description {
     84               state: "enabled" 0.0;
     85               inherit: "default" 0.0;
     86            }
     87            description {
     88               state: "disabled" 0.0;
     89               inherit: "default" 0.0;
     90               image {
     91                  normal: "widget/radio/img_radio_bg_disabled.png";
     92               }
     93            }
     94         }
    6895         part {
    6996            name: "radio_button";
Note: See TracChangeset for help on using the changeset viewer.