* @since 2.1
*/
_OSP_EXPORT_ static const int TEXT_SELECTED;
- /**
- * The property key to get the selected text color of token edit.
- *
- * @since 2.1
- */
- _OSP_EXPORT_ static const int BG_FOCUS;
};
};
}} //Tizen::Ui
const int ColorKey::TokenEdit::BG_SELECTED = _TOKENEDIT::BG_SELECTED_COLOR;
const int ColorKey::TokenEdit::TEXT_NORMAL = _TOKENEDIT::TEXT_NORMAL_COLOR;
const int ColorKey::TokenEdit::TEXT_SELECTED = _TOKENEDIT::TEXT_SELECTED_COLOR;
-const int ColorKey::TokenEdit::BG_FOCUS = _TOKENEDIT::BG_FOCUS_COLOR;
UiConfiguration::UiConfiguration(void)
{
GET_SHAPE_CONFIG(TOKENEDIT::TOP_MARGIN, orientation, tokenTopMargin);
GET_SHAPE_CONFIG(TOKENEDIT::BOTTOM_MARGIN, orientation, tokenBottomMargin);
GET_SHAPE_CONFIG(TOKENEDIT::TOKEN_HEIGHT, orientation, tokenHeight);
- GET_COLOR_CONFIG(TOKENEDIT::BG_FOCUS, focusTokenColor);
+ GET_COLOR_CONFIG(BUTTON::BG_HIGHLIGHTED, focusTokenColor);
// For drawing token in specific area
__clientRect.x = leftMargin;
}
else
{
- __focusedTokenIndex--;
- focusChanged = true;
+ if (__focusedTokenIndex > 0)
+ {
+ __focusedTokenIndex--;
+ focusChanged = true;
+ }
}
}
}
DECLARE_COLOR_CONFIG(BG_SELECTED, 2);
DECLARE_COLOR_CONFIG(TEXT_NORMAL, 3);
DECLARE_COLOR_CONFIG(TEXT_SELECTED, 4);
- DECLARE_COLOR_CONFIG(BG_FOCUS, 5);
DECLARE_IMAGE_CONFIG(BG_NORMAL, 1);
DECLARE_IMAGE_CONFIG(BG_NORMAL_EFFECT, 2);
DECLARE_IMAGE_CONFIG(BG_PRESSED_EFFECT, 3);
DECLARE_SHAPE_CONFIG(HIDDEN_TOKEN_COUNT_DISPLAY_HEIGHT, 17);
DECLARE_SHAPE_CONFIG(TOKEN_TITLE_RECT_WIDTH, 18);
DECLARE_END_UI_CONFIG(TOKENEDIT);
-
-#endif //_FUI_RESOURCE_TOKEN_EDIT_CONFIG_H_
\ No newline at end of file
+#endif //_FUI_RESOURCE_TOKEN_EDIT_CONFIG_H_
const char* key ="TOKENEDIT::TEXT_SELECTED";
__pColorKeyTable->Add(ResourceKey(key), _TOKENEDIT::TEXT_SELECTED_COLOR);
}
- {
- const char* key ="TOKENEDIT::BG_FOCUS";
- __pColorKeyTable->Add(ResourceKey(key), _TOKENEDIT::BG_FOCUS_COLOR);
- }
}
return __pColorKeyTable;
}
ADD_COLOR_CONFIG(BG_SELECTED, $W0713);
ADD_COLOR_CONFIG(TEXT_NORMAL, $F011L10);
ADD_COLOR_CONFIG(TEXT_SELECTED, $F011L10);
- ADD_COLOR_CONFIG(BG_FOCUS, $W0715);
ADD_IMAGE_CONFIG(BG_NORMAL, #00_contacts_button_bg.#.png);
ADD_IMAGE_CONFIG(BG_NORMAL_EFFECT, #00_contacts_button_bg_ef.#.png);