

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# UIColorPalette
<a name="API_UIColorPalette"></a>

套用於 UI 和圖表的佈景主題顏色，不包括資料顏色。顏色描述使用十六進位顏色碼，由六個英數位元組成，字首為 `#`，例如 \$137BFF5。如需詳細資訊，請參閱「」[在亞馬遜使用佈景主題 QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/themes-in-quicksight.html)中的*亞馬遜 QuickSight 使用者指南。*

## 內容
<a name="API_UIColorPalette_Contents"></a>

**注意**  
在下列清單中，會先說明必要的參數。

 ** Accent **   <a name="QS-Type-UIColorPalette-Accent"></a>
此顏色套用於所選狀態和按鈕。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

 ** AccentForeground **   <a name="QS-Type-UIColorPalette-AccentForeground"></a>
前景顏色會套用至顯示在強調顏色上的任何文字或其他元素。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

 ** Danger **   <a name="QS-Type-UIColorPalette-Danger"></a>
套用於錯誤訊息的顏色。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

 ** DangerForeground **   <a name="QS-Type-UIColorPalette-DangerForeground"></a>
前景顏色會套用至顯示在錯誤顏色上的任何文字或其他元素。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

 ** Dimension **   <a name="QS-Type-UIColorPalette-Dimension"></a>
套用於被識別為維度之欄位名稱的顏色。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

 ** DimensionForeground **   <a name="QS-Type-UIColorPalette-DimensionForeground"></a>
前景顏色會套用至顯示在維度顏色上的任何文字或其他元素。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

 ** Measure **   <a name="QS-Type-UIColorPalette-Measure"></a>
套用於被識別為測量之欄位名稱的顏色。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

 ** MeasureForeground **   <a name="QS-Type-UIColorPalette-MeasureForeground"></a>
前景顏色會套用至顯示在測量顏色上的任何文字或其他元素。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

 ** PrimaryBackground **   <a name="QS-Type-UIColorPalette-PrimaryBackground"></a>
套用於視覺效果和其他高強調 UI 的背景顏色。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

 ** PrimaryForeground **   <a name="QS-Type-UIColorPalette-PrimaryForeground"></a>
出現在主要背景區域上 (例如格線、邊框、資料表區帶、圖示等) 的文字和其他前景元素的顏色。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

 ** SecondaryBackground **   <a name="QS-Type-UIColorPalette-SecondaryBackground"></a>
套用於工作表背景和工作表控制項的背景顏色。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

 ** SecondaryForeground **   <a name="QS-Type-UIColorPalette-SecondaryForeground"></a>
顯示在次要背景上，套用於任何資料表標題、資料表控制項文字或 UI 的前景顏色。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

 ** Success **   <a name="QS-Type-UIColorPalette-Success"></a>
此顏色會套用於成功的訊息，例如，成功下載的核取記號。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

 ** SuccessForeground **   <a name="QS-Type-UIColorPalette-SuccessForeground"></a>
前景顏色會套用至顯示在成功顏色上的任何文字或其他元素。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

 ** Warning **   <a name="QS-Type-UIColorPalette-Warning"></a>
此顏色套用於警告和資訊訊息。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

 ** WarningForeground **   <a name="QS-Type-UIColorPalette-WarningForeground"></a>
前景顏色會套用至顯示在警告顏色上的任何文字或其他元素。  
類型：字串  
模式：`^#[A-F0-9]{6}$`  
必要：否

## 另請參閱
<a name="API_UIColorPalette_SeeAlso"></a>

如需在語言特定的 AWS 開發套件之一中使用此 API 的詳細資訊，請參閱下列說明：
+  [適用於 C\$1\$1 的 AWS 開發套件](https://docs.aws.amazon.com/goto/SdkForCpp/quicksight-2018-04-01/UIColorPalette) 
+  [適用於 Go 的 AWS 開發套件](https://docs.aws.amazon.com/goto/SdkForGoV1/quicksight-2018-04-01/UIColorPalette) 
+  [適用於 Java 的 AWS 開發套件第 2 版](https://docs.aws.amazon.com/goto/SdkForJavaV2/quicksight-2018-04-01/UIColorPalette) 
+  [適用於 Ruby 的 AWS 開發套件第 3 版](https://docs.aws.amazon.com/goto/SdkForRubyV3/quicksight-2018-04-01/UIColorPalette) 