Copy and paste / res / edje /

source_ext.edc

  1. /*
  2. * Copyright (c) 2016 Samsung Electronics Co., Ltd
  3. *
  4. * Licensed under the Flora License, Version 1.1 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://floralicense.org/license/
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16.  
  17. #include "../../inc/view_defines.h"
  18.  
  19. #define PART_CLIPPER "label.text.clip"
  20. #define PART_BACKGROUD "image.background"
  21. #define PART_TEXT "elm.text"
  22.  
  23. #define EXTENSION_FILE_NAME "source.png"
  24.  
  25. styles {
  26. style {
  27. name: "label_style";
  28. base: "font="FN" font_size=13 text_class=tb_plain align=center color=#998877ff style=shadow,bottom shadow_color=#00000080";
  29. tag: "br" "\n";
  30. tag: "hilight" "+ font="FNBD" text_class=tb_light";
  31. tag: "b" "+ font="FNBD" text_class=tb_light";
  32. }
  33. }
  34.  
  35. collections {
  36. images {
  37. image: EXTENSION_FILE_NAME COMP;
  38. }
  39.  
  40. group {
  41. name: "elm/label/base/"GRP_SOURCE_EXT;
  42.  
  43. parts {
  44. part {
  45. name: PART_CLIPPER;
  46. type: RECT;
  47. description {
  48. state: "default" 0.0;
  49. }
  50. }
  51.  
  52. part {
  53. name: PART_BACKGROUD;
  54. type: IMAGE;
  55. scale: 1;
  56. description {
  57. state: "default" 0.0;
  58. visible: 1;
  59. fixed: 1 1;
  60. rel1 {
  61. relative: 0.0 0.0;
  62. to: PART_CLIPPER;
  63. }
  64. rel2 {
  65. relative: 1.0 1.0;
  66. to: PART_CLIPPER;
  67. }
  68. image {
  69. normal: EXTENSION_FILE_NAME;
  70. }
  71. }
  72. }
  73.  
  74. part {
  75. name: PART_TEXT;
  76. type: TEXTBLOCK;
  77. clip_to: PART_CLIPPER;
  78. scale: 1;
  79. description {
  80. state: "default" 0.0;
  81. rel1 {
  82. relative: 0.08 0.08;
  83. to: PART_CLIPPER;
  84. }
  85. rel2 {
  86. relative: 0.92 0.92;
  87. to: PART_CLIPPER;
  88. }
  89. text {
  90. style: "label_style";
  91. }
  92. }
  93. }
  94. }
  95. }
  96. }