Class: AWSCDK::Connect::CfnWorkspace::PaletteNavigationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnWorkspace::PaletteNavigationProperty
- Defined in:
- connect/cfn_workspace.rb
Overview
Contains color configuration for navigation elements in a workspace theme.
Instance Attribute Summary collapse
-
#background ⇒ String?
readonly
The background color of the navigation area.
-
#invert_actions_colors ⇒ Boolean, ...
readonly
Whether to invert the colors of action buttons in the navigation area.
-
#text ⇒ String?
readonly
The text color in the navigation area.
-
#text_active ⇒ String?
readonly
The text color for active navigation items.
-
#text_background_active ⇒ String?
readonly
The background color for active navigation items.
-
#text_background_hover ⇒ String?
readonly
The background color when hovering over navigation text.
-
#text_hover ⇒ String?
readonly
The text color when hovering over navigation items.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(background: nil, invert_actions_colors: nil, text: nil, text_active: nil, text_background_active: nil, text_background_hover: nil, text_hover: nil) ⇒ PaletteNavigationProperty
constructor
A new instance of PaletteNavigationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(background: nil, invert_actions_colors: nil, text: nil, text_active: nil, text_background_active: nil, text_background_hover: nil, text_hover: nil) ⇒ PaletteNavigationProperty
Returns a new instance of PaletteNavigationProperty.
843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 |
# File 'connect/cfn_workspace.rb', line 843 def initialize(background: nil, invert_actions_colors: nil, text: nil, text_active: nil, text_background_active: nil, text_background_hover: nil, text_hover: nil) @background = background Jsii::Type.check_type(@background, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "background") unless @background.nil? @invert_actions_colors = invert_actions_colors Jsii::Type.check_type(@invert_actions_colors, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "invertActionsColors") unless @invert_actions_colors.nil? @text = text Jsii::Type.check_type(@text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "text") unless @text.nil? @text_active = text_active Jsii::Type.check_type(@text_active, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "textActive") unless @text_active.nil? @text_background_active = text_background_active Jsii::Type.check_type(@text_background_active, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "textBackgroundActive") unless @text_background_active.nil? @text_background_hover = text_background_hover Jsii::Type.check_type(@text_background_hover, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "textBackgroundHover") unless @text_background_hover.nil? @text_hover = text_hover Jsii::Type.check_type(@text_hover, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "textHover") unless @text_hover.nil? end |
Instance Attribute Details
#background ⇒ String? (readonly)
The background color of the navigation area.
864 865 866 |
# File 'connect/cfn_workspace.rb', line 864 def background @background end |
#invert_actions_colors ⇒ Boolean, ... (readonly)
Whether to invert the colors of action buttons in the navigation area.
869 870 871 |
# File 'connect/cfn_workspace.rb', line 869 def invert_actions_colors @invert_actions_colors end |
#text ⇒ String? (readonly)
The text color in the navigation area.
874 875 876 |
# File 'connect/cfn_workspace.rb', line 874 def text @text end |
#text_active ⇒ String? (readonly)
The text color for active navigation items.
879 880 881 |
# File 'connect/cfn_workspace.rb', line 879 def text_active @text_active end |
#text_background_active ⇒ String? (readonly)
The background color for active navigation items.
884 885 886 |
# File 'connect/cfn_workspace.rb', line 884 def text_background_active @text_background_active end |
#text_background_hover ⇒ String? (readonly)
The background color when hovering over navigation text.
889 890 891 |
# File 'connect/cfn_workspace.rb', line 889 def text_background_hover @text_background_hover end |
#text_hover ⇒ String? (readonly)
The text color when hovering over navigation items.
894 895 896 |
# File 'connect/cfn_workspace.rb', line 894 def text_hover @text_hover end |
Class Method Details
.jsii_properties ⇒ Object
896 897 898 899 900 901 902 903 904 905 906 |
# File 'connect/cfn_workspace.rb', line 896 def self.jsii_properties { :background => "background", :invert_actions_colors => "invertActionsColors", :text => "text", :text_active => "textActive", :text_background_active => "textBackgroundActive", :text_background_hover => "textBackgroundHover", :text_hover => "textHover", } end |
Instance Method Details
#to_jsii ⇒ Object
908 909 910 911 912 913 914 915 916 917 918 919 920 |
# File 'connect/cfn_workspace.rb', line 908 def to_jsii result = {} result.merge!({ "background" => @background, "invertActionsColors" => @invert_actions_colors, "text" => @text, "textActive" => @text_active, "textBackgroundActive" => @text_background_active, "textBackgroundHover" => @text_background_hover, "textHover" => @text_hover, }) result.compact end |