white_gold 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/lib/white_gold/abi/enum.rb +0 -8
  3. data/lib/white_gold/convention/container_widgets.rb +26 -29
  4. data/lib/white_gold/convention/page.rb +2 -2
  5. data/lib/white_gold/{dsl → convention}/theme/color_attribute.rb +2 -0
  6. data/lib/white_gold/{dsl → convention}/theme/outline_attribute.rb +2 -0
  7. data/lib/white_gold/{dsl → convention}/theme/texture_attribute.rb +2 -0
  8. data/lib/white_gold/{dsl → convention}/theme/theme_attributed.rb +3 -17
  9. data/lib/white_gold/{dsl → convention}/theme/theme_component.rb +14 -3
  10. data/lib/white_gold/convention/theme_attributes.rb +49 -0
  11. data/lib/white_gold/dsl/button_base.rb +17 -2
  12. data/lib/white_gold/dsl/chat_box.rb +11 -0
  13. data/lib/white_gold/dsl/child_window.rb +21 -0
  14. data/lib/white_gold/dsl/color_picker.rb +9 -0
  15. data/lib/white_gold/dsl/combo_box.rb +28 -0
  16. data/lib/white_gold/dsl/edit_box.rb +29 -0
  17. data/lib/white_gold/dsl/file_dialog.rb +17 -0
  18. data/lib/white_gold/dsl/group.rb +5 -0
  19. data/lib/white_gold/dsl/knob.rb +10 -0
  20. data/lib/white_gold/dsl/label.rb +14 -0
  21. data/lib/white_gold/dsl/list_box.rb +20 -0
  22. data/lib/white_gold/dsl/list_view.rb +23 -0
  23. data/lib/white_gold/dsl/menu_bar.rb +16 -0
  24. data/lib/white_gold/dsl/message_box.rb +6 -0
  25. data/lib/white_gold/dsl/progress_bar.rb +14 -0
  26. data/lib/white_gold/dsl/radio_button.rb +25 -0
  27. data/lib/white_gold/dsl/range_slider.rb +8 -0
  28. data/lib/white_gold/dsl/scrollbar.rb +19 -0
  29. data/lib/white_gold/dsl/separator_line.rb +5 -0
  30. data/lib/white_gold/dsl/slider.rb +15 -0
  31. data/lib/white_gold/dsl/spin_button.rb +14 -0
  32. data/lib/white_gold/dsl/tabs.rb +24 -0
  33. data/lib/white_gold/dsl/text_area.rb +16 -0
  34. data/lib/white_gold/dsl/theme.rb +11 -51
  35. data/lib/white_gold/dsl/tree_view.rb +20 -0
  36. data/lib/white_gold/dsl/widget.rb +11 -2
  37. data/lib/white_gold/library/theme/light.rb +15 -3
  38. data/lib/white_gold/master.rb +1 -1
  39. data/lib/white_gold/path/object.path.rb +0 -11
  40. data/lib/white_gold/tgui-abi.rb +1 -0
  41. metadata +13 -37
  42. data/lib/white_gold/dsl/theme/button_theme.rb +0 -19
  43. data/lib/white_gold/dsl/theme/chat_box_theme.rb +0 -16
  44. data/lib/white_gold/dsl/theme/child_window_theme.rb +0 -25
  45. data/lib/white_gold/dsl/theme/color_picker_theme.rb +0 -14
  46. data/lib/white_gold/dsl/theme/combo_box_theme.rb +0 -33
  47. data/lib/white_gold/dsl/theme/common_renderer.rb +0 -7
  48. data/lib/white_gold/dsl/theme/edit_box_theme.rb +0 -34
  49. data/lib/white_gold/dsl/theme/file_dialog_theme.rb +0 -22
  50. data/lib/white_gold/dsl/theme/group_theme.rb +0 -9
  51. data/lib/white_gold/dsl/theme/knob_theme.rb +0 -15
  52. data/lib/white_gold/dsl/theme/label_theme.rb +0 -20
  53. data/lib/white_gold/dsl/theme/list_box_theme.rb +0 -25
  54. data/lib/white_gold/dsl/theme/list_view_theme.rb +0 -27
  55. data/lib/white_gold/dsl/theme/menu_bar_theme.rb +0 -21
  56. data/lib/white_gold/dsl/theme/message_box_theme.rb +0 -11
  57. data/lib/white_gold/dsl/theme/progress_bar_theme.rb +0 -19
  58. data/lib/white_gold/dsl/theme/radio_button_theme.rb +0 -30
  59. data/lib/white_gold/dsl/theme/scrollbar_theme.rb +0 -24
  60. data/lib/white_gold/dsl/theme/separator_line_theme.rb +0 -9
  61. data/lib/white_gold/dsl/theme/slider_theme.rb +0 -20
  62. data/lib/white_gold/dsl/theme/spin_button_theme.rb +0 -19
  63. data/lib/white_gold/dsl/theme/tabs_theme.rb +0 -29
  64. data/lib/white_gold/dsl/theme/text_area_theme.rb +0 -22
  65. data/lib/white_gold/dsl/theme/tree_view_theme.rb +0 -26
  66. data/lib/white_gold/dsl/theme/widget_theme.rb +0 -12
  67. /data/lib/white_gold/{dsl → convention}/theme/boolean_attribute.rb +0 -0
  68. /data/lib/white_gold/{dsl → convention}/theme/float_attribute.rb +0 -0
  69. /data/lib/white_gold/{dsl → convention}/theme/text_styles_attribute.rb +0 -0
  70. /data/lib/white_gold/dsl/{checkbox.rb → check_box.rb} +0 -0
@@ -1,22 +0,0 @@
1
- require_relative 'widget_theme'
2
- require_relative 'button_theme'
3
- require_relative 'label_theme'
4
- require_relative 'list_view_theme'
5
- require_relative 'edit_box_theme'
6
- require_relative 'combo_box_theme'
7
-
8
- module Tgui
9
- class FileDialogTheme < WidgetTheme
10
-
11
- theme_comp :list_view, ListViewTheme
12
- theme_comp :edit_box, EditBoxTheme
13
- theme_comp :filename_label, LabelTheme
14
- theme_comp :file_type_combo_box, ComboBoxTheme
15
- theme_comp :button, ButtonTheme
16
- theme_comp :back_button, ButtonTheme
17
- theme_comp :forward_button, ButtonTheme
18
- theme_comp :up_button, ButtonTheme
19
- theme_attr :arrow_on_navigation_buttons_visible, :boolean
20
-
21
- end
22
- end
@@ -1,9 +0,0 @@
1
- require_relative 'widget_theme'
2
-
3
- module Tgui
4
- class GroupTheme < WidgetTheme
5
-
6
- theme_attr :padding, :outline
7
-
8
- end
9
- end
@@ -1,15 +0,0 @@
1
- require_relative 'widget_theme'
2
-
3
- module Tgui
4
- class KnobTheme < WidgetTheme
5
-
6
- theme_attr :borders, :outline
7
- theme_attr :background_color, :color
8
- theme_attr :thumb_color, :color
9
- theme_attr :border_color, :color
10
- theme_attr :texture_background, :texture
11
- theme_attr :texture_foreground, :texture
12
- theme_attr :image_rotation, :float
13
-
14
- end
15
- end
@@ -1,20 +0,0 @@
1
- require_relative 'widget_theme'
2
- require_relative 'scrollbar_theme'
3
-
4
- module Tgui
5
- class LabelTheme < WidgetTheme
6
-
7
- theme_attr :borders, :outline
8
- theme_attr :padding, :outline
9
- theme_attr :text_color, :color
10
- theme_attr :background_color, :color
11
- theme_attr :border_color, :color
12
- theme_attr :text_style, :text_styles
13
- theme_attr :text_outline_color, :color
14
- theme_attr :text_outline_thickness, :float
15
- theme_attr :texture_background, :texture
16
- theme_comp :scrollbar, ScrollbarTheme
17
- theme_attr :scrollbar_width, :float
18
-
19
- end
20
- end
@@ -1,25 +0,0 @@
1
- require_relative 'widget_theme'
2
- require_relative 'scrollbar_theme'
3
-
4
- module Tgui
5
- class ListBoxTheme < WidgetTheme
6
-
7
- theme_attr :borders, :outline
8
- theme_attr :padding, :outline
9
- theme_attr :text_style, :text_styles
10
- theme_attr :selected_text_style, :text_styles
11
- theme_attr :background_color, :color
12
- theme_attr :background_color_hover, :color
13
- theme_attr :selected_background_color, :color
14
- theme_attr :selected_background_color_hover, :color
15
- theme_attr :text_color, :color
16
- theme_attr :text_color_hover, :color
17
- theme_attr :selected_text_color, :color
18
- theme_attr :selected_text_color_hover, :color
19
- theme_attr :border_color, :color
20
- theme_attr :texture_background, :texture
21
- theme_comp :scrollbar, ScrollbarTheme
22
- theme_attr :scrollbar_width, :float
23
-
24
- end
25
- end
@@ -1,27 +0,0 @@
1
- require_relative 'widget_theme'
2
-
3
- module Tgui
4
- class ListViewTheme < WidgetTheme
5
-
6
- theme_attr :borders, :outline
7
- theme_attr :padding, :outline
8
- theme_attr :background_color, :color
9
- theme_attr :background_color_hover, :color
10
- theme_attr :selected_background_color, :color
11
- theme_attr :selected_background_color_hover, :color
12
- theme_attr :text_color, :color
13
- theme_attr :text_color_hover, :color
14
- theme_attr :selected_text_color, :color
15
- theme_attr :selected_text_color_hover, :color
16
- theme_attr :header_background_color, :color
17
- theme_attr :header_text_color, :color
18
- theme_attr :border_color, :color
19
- theme_attr :separator_color, :color
20
- theme_attr :grid_lines_color, :color
21
- theme_attr :texture_header_background, :texture
22
- theme_attr :texture_background, :texture
23
- theme_comp :scrollbar, ScrollbarTheme
24
- theme_attr :scrollbar_width, :float
25
-
26
- end
27
- end
@@ -1,21 +0,0 @@
1
- require_relative 'widget_theme'
2
-
3
- module Tgui
4
- class MenuBarTheme < WidgetTheme
5
-
6
- theme_attr :background_color, :color
7
- theme_attr :selected_background_color, :color
8
- theme_attr :text_color, :color
9
- theme_attr :selected_text_color, :color
10
- theme_attr :text_color_disabled, :color
11
- theme_attr :separator_color, :color
12
- theme_attr :texture_background, :texture
13
- theme_attr :texture_item_background, :texture
14
- theme_attr :texture_selected_item_background, :texture
15
- theme_attr :distance_to_side, :float
16
- theme_attr :separator_thickness, :float
17
- theme_attr :separator_vertical_padding, :float
18
- theme_attr :separator_side_padding, :float
19
-
20
- end
21
- end
@@ -1,11 +0,0 @@
1
- require_relative 'widget_theme'
2
- require_relative 'button_theme'
3
-
4
- module Tgui
5
- class MessageBoxTheme < WidgetTheme
6
-
7
- theme_attr :text_color, :color
8
- theme_comp :button, ButtonTheme
9
-
10
- end
11
- end
@@ -1,19 +0,0 @@
1
- require_relative 'widget_theme'
2
-
3
- module Tgui
4
- class ProgressBarTheme < WidgetTheme
5
-
6
- theme_attr :borders, :outline
7
- theme_attr :text_color, :color
8
- theme_attr :text_color_filled, :color
9
- theme_attr :background_color, :color
10
- theme_attr :fill_color, :color
11
- theme_attr :border_color, :color
12
- theme_attr :texture_background, :texture
13
- theme_attr :texture_fill, :texture
14
- theme_attr :text_style, :text_styles
15
- theme_attr :text_outline_color, :color
16
- theme_attr :text_outline_thickness, :float
17
-
18
- end
19
- end
@@ -1,30 +0,0 @@
1
- require_relative 'widget_theme'
2
-
3
- module Tgui
4
- class RadioButtonTheme < WidgetTheme
5
-
6
- theme_attr :borders, :outline
7
- theme_attr :text_distance_ratio, :float
8
- [ '', :_hover, :_disabled, :_checked, :_checked_hover, :_checked_disabled ].each do |v|
9
- theme_attr "text_color#{v}".to_sym, :color
10
- theme_attr "background_color#{v}".to_sym, :color
11
- theme_attr "border_color#{v}".to_sym, :color
12
- end
13
- theme_attr :border_color_focused, :color
14
- theme_attr :border_color_checked_focused, :color
15
- theme_attr :check_color, :color
16
- theme_attr :check_color_hover, :color
17
- theme_attr :check_color_disabled, :color
18
- theme_attr :texture_unchecked, :texture
19
- theme_attr :texture_unchecked_hover, :texture
20
- theme_attr :texture_unchecked_disabled, :texture
21
- theme_attr :texture_unchecked_focused, :texture
22
- theme_attr :texture_checked, :texture
23
- theme_attr :texture_checked_hover, :texture
24
- theme_attr :texture_checked_disabled, :texture
25
- theme_attr :texture_checked_focused, :texture
26
- theme_attr :text_style, :text_styles
27
- theme_attr :text_style_checked, :text_styles
28
-
29
- end
30
- end
@@ -1,24 +0,0 @@
1
- require_relative 'widget_theme'
2
-
3
- module Tgui
4
- class ScrollbarTheme < WidgetTheme
5
-
6
- theme_attr :track_color, :color
7
- theme_attr :track_color_hover, :color
8
- theme_attr :thumb_color, :color
9
- theme_attr :thumb_color_hover, :color
10
- theme_attr :arrow_background_color, :color
11
- theme_attr :arrow_background_color_hover, :color
12
- theme_attr :arrow_color, :color
13
- theme_attr :arrow_color_hover, :color
14
- theme_attr :texture_track, :texture
15
- theme_attr :texture_track_hover, :texture
16
- theme_attr :texture_thumb, :texture
17
- theme_attr :texture_thumb_hover, :texture
18
- theme_attr :texture_arrow_up, :texture
19
- theme_attr :texture_arrow_up_hover, :texture
20
- theme_attr :texture_arrow_down, :texture
21
- theme_attr :texture_arrow_down_hover, :texture
22
-
23
- end
24
- end
@@ -1,9 +0,0 @@
1
- require_relative 'widget_theme'
2
-
3
- module Tgui
4
- class SeparatorLineTheme < WidgetTheme
5
-
6
- theme_attr :color, :color
7
-
8
- end
9
- end
@@ -1,20 +0,0 @@
1
- require_relative 'widget_theme'
2
-
3
- module Tgui
4
- class SliderTheme < WidgetTheme
5
-
6
- theme_attr :borders, :outline
7
- theme_attr :track_color, :color
8
- theme_attr :track_color_hover, :color
9
- theme_attr :thumb_color, :color
10
- theme_attr :thumb_color_hover, :color
11
- theme_attr :border_color, :color
12
- theme_attr :border_color_hover, :color
13
- theme_attr :texture_track, :texture
14
- theme_attr :texture_track_hover, :texture
15
- theme_attr :texture_thumb, :texture
16
- theme_attr :texture_thumb_hover, :texture
17
- theme_attr :thumb_within_track, :boolean
18
-
19
- end
20
- end
@@ -1,19 +0,0 @@
1
- require_relative 'widget_theme'
2
-
3
- module Tgui
4
- class SpinButtonTheme < WidgetTheme
5
-
6
- theme_attr :borders, :outline
7
- theme_attr :border_between_arrows, :float
8
- theme_attr :background_color, :color
9
- theme_attr :background_color_hover, :color
10
- theme_attr :arrow_color, :color
11
- theme_attr :arrow_color_hover, :color
12
- theme_attr :border_color, :color
13
- theme_attr :texture_arrow_up, :texture
14
- theme_attr :texture_arrow_up_hover, :texture
15
- theme_attr :texture_arrow_down, :texture
16
- theme_attr :texture_arrow_down_hover, :texture
17
-
18
- end
19
- end
@@ -1,29 +0,0 @@
1
- require_relative 'widget_theme'
2
-
3
- module Tgui
4
- class TabsTheme < WidgetTheme
5
-
6
- theme_attr :borders, :outline
7
- theme_attr :background_color, :color
8
- theme_attr :background_color_hover, :color
9
- theme_attr :background_color_disabled, :color
10
- theme_attr :selected_background_color, :color
11
- theme_attr :selected_background_color_hover, :color
12
- theme_attr :text_color, :color
13
- theme_attr :text_color_hover, :color
14
- theme_attr :text_color_disabled, :color
15
- theme_attr :selected_text_color, :color
16
- theme_attr :selected_text_color_hover, :color
17
- theme_attr :border_color, :color
18
- theme_attr :border_color_hover, :color
19
- theme_attr :selected_border_color, :color
20
- theme_attr :selected_border_color_hover, :color
21
- theme_attr :texture_tab, :texture
22
- theme_attr :texture_tab_hover, :texture
23
- theme_attr :texture_selected_tab, :texture
24
- theme_attr :texture_selected_tab_hover, :texture
25
- theme_attr :texture_disabled_tab, :texture
26
- theme_attr :distance_to_side, :float
27
-
28
- end
29
- end
@@ -1,22 +0,0 @@
1
- require_relative 'widget_theme'
2
- require_relative 'scrollbar_theme'
3
-
4
- module Tgui
5
- class TextAreaTheme < WidgetTheme
6
-
7
- theme_attr :borders, :outline
8
- theme_attr :padding, :outline
9
- theme_attr :background_color, :color
10
- theme_attr :text_color, :color
11
- theme_attr :default_text_color, :color
12
- theme_attr :selected_text_color, :color
13
- theme_attr :selected_text_background_color, :color
14
- theme_attr :border_color, :color
15
- theme_attr :caret_color, :color
16
- theme_attr :texture_background, :texture
17
- theme_attr :caret_width, :float
18
- theme_comp :scrollbar, ScrollbarTheme
19
- theme_attr :scrollbar_width, :float
20
-
21
- end
22
- end
@@ -1,26 +0,0 @@
1
- require_relative 'widget_theme'
2
- require_relative 'scrollbar_theme'
3
-
4
- module Tgui
5
- class TreeViewTheme < WidgetTheme
6
-
7
- theme_attr :borders, :outline
8
- theme_attr :padding, :outline
9
- theme_attr :background_color, :color
10
- theme_attr :background_color_hover, :color
11
- theme_attr :selected_background_color, :color
12
- theme_attr :selected_background_color_hover, :color
13
- theme_attr :border_color, :color
14
- theme_attr :text_color, :color
15
- theme_attr :text_color_hover, :color
16
- theme_attr :selected_text_color, :color
17
- theme_attr :selected_text_color_hover, :color
18
- theme_comp :scrollbar, ScrollbarTheme
19
- theme_attr :scrollbar_width, :float
20
- theme_attr :texture_background, :texture
21
- theme_attr :texture_branch_expanded, :texture
22
- theme_attr :texture_branch_collapsed, :texture
23
- theme_attr :texture_leaf, :texture
24
-
25
- end
26
- end
@@ -1,12 +0,0 @@
1
- require_relative 'theme_component'
2
-
3
- module Tgui
4
- class WidgetTheme < ThemeComponent
5
-
6
- theme_attr :opacity, :float
7
- theme_attr :opacity_disabled, :float
8
- theme_attr :text_size, :float
9
- theme_attr :transparent_texture, :boolean
10
-
11
- end
12
- end
File without changes