Skip to content

Commit 60c7593

Browse files
committed
added background color for text boxes
1 parent 87fa611 commit 60c7593

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/theme/AmazonQTheme.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ data class AmazonQTheme(
1616
val defaultText: Color,
1717
val inactiveText: Color,
1818
val linkText: Color,
19+
val lightText: Color,
20+
val watermarkText: Color,
1921

2022
val background: Color,
2123
val border: Color,
@@ -31,6 +33,8 @@ data class AmazonQTheme(
3133
val buttonBackground: Color,
3234
val secondaryButtonForeground: Color,
3335
val secondaryButtonBackground: Color,
36+
val inputBorderFocused: Color,
37+
val inputBorderUnfocused: Color,
3438

3539
val info: Color,
3640
val success: Color,

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/theme/CssVariable.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ enum class CssVariable(
1616
TextColorAlt("--mynah-color-text-alternate"),
1717
TextColorStrong("--mynah-color-text-strong"),
1818
TextColorWeak("--mynah-color-text-weak"),
19+
TextColorLight("--mynah-color-light"),
1920
TextColorLink("--mynah-color-text-link"),
2021
TextColorInput("--mynah-color-text-input"),
2122
TextColorDisabled("--mynah-color-text-disabled"),
@@ -27,6 +28,8 @@ enum class CssVariable(
2728
ColorDeep("--mynah-color-deep"),
2829
ColorDeepReverse("--mynah-color-deep-reverse"),
2930
BorderDefault("--mynah-color-border-default"),
31+
BorderFocused("--mynah-color-text-input-border-focused"),
32+
BorderUnfocused("--mynah-color-text-input-border"),
3033
InputBackground("--mynah-input-bg"),
3134

3235
SyntaxBackground("--mynah-color-syntax-bg"),

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/theme/EditorThemeAdapter.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ class EditorThemeAdapter {
124124
editorString = currentScheme.foregroundColor(DefaultLanguageHighlighterColors.STRING),
125125
editorProperty = currentScheme.foregroundColor(DefaultLanguageHighlighterColors.INSTANCE_FIELD),
126126
editorClassName = currentScheme.foregroundColor(DefaultLanguageHighlighterColors.CLASS_NAME),
127+
lightText = themeColor("TextField.inactiveForeground", default = 0xA8ADBD, darkDefault = 0x5A5D63),
128+
watermarkText = themeColor("TextField.inactiveForeground", default = 0xA8ADBD, darkDefault = 0x5A5D63),
129+
inputBorderFocused = themeColor("ActionButton.focusedBorderColor", default = 0x4682FA, darkDefault = 0x3574f0),
130+
inputBorderUnfocused = themeColor("TextField.borderColor", default = 0xEBECF0, darkDefault = 0x4E5157),
127131
)
128132
}
129133

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/theme/ThemeBrowserAdapter.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,19 @@ class ThemeBrowserAdapter {
4040
append(CssVariable.TextColorStrong, theme.textFieldForeground)
4141
append(CssVariable.TextColorInput, theme.textFieldForeground)
4242
append(CssVariable.TextColorLink, theme.linkText)
43-
append(CssVariable.TextColorWeak, theme.inactiveText)
43+
append(CssVariable.TextColorWeak, theme.watermarkText)
44+
append(CssVariable.TextColorLight, theme.watermarkText)
4445
append(CssVariable.TextColorDisabled, theme.inactiveText)
4546

4647
append(CssVariable.Background, bg)
4748
append(CssVariable.BackgroundAlt, altBg)
4849
append(CssVariable.CardBackground, bg)
4950
append(CssVariable.CardBackgroundAlt, altBg)
5051
append(CssVariable.BorderDefault, theme.border)
52+
append(CssVariable.BorderFocused, theme.inputBorderFocused)
53+
append(CssVariable.BorderUnfocused, theme.inputBorderUnfocused)
5154
append(CssVariable.TabActive, theme.activeTab)
52-
55+
5356
append(CssVariable.InputBackground, inputBg)
5457

5558
append(CssVariable.ButtonBackground, theme.buttonBackground)

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ManifestFetcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ManifestFetcher(
2929
private val logger = getLogger<ManifestFetcher>()
3030

3131
private const val DEFAULT_MANIFEST_URL =
32-
"https://aws-toolkit-language-servers.amazonaws.com/qAgenticChatServer/0/manifest.json"
32+
"https://d3akiidp1wvqyg.cloudfront.net/qAgenticChatServer/0/manifest.json"
3333

3434
private val DEFAULT_MANIFEST_PATH: Path = getToolkitsCommonCacheRoot()
3535
.resolve("aws")

0 commit comments

Comments
 (0)