Skip to content

Commit

Permalink
fix(common): styling minors (#3564)
Browse files Browse the repository at this point in the history
Signed-off-by: banklesss <[email protected]>
  • Loading branch information
banklesss authored Aug 28, 2024
1 parent 37a4a3c commit 5207d85
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions apps/wallet-mobile/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export const Button = (props: ButtonProps) => {
outlineOnLight && styles.textOutlineOnLight,
outlineOnLight && shelleyTheme && styles.textShelleyOutlineOnLight,
outlineShelley && styles.textOutlineShelley,
props.disabled && styles.buttonDisabledText,
textStyles,
]}
>
Expand Down Expand Up @@ -154,6 +155,9 @@ const useStyles = () => {
buttonDisabled: {
opacity: 0.5,
},
buttonDisabledText: {
color: color.text_gray_min,
},
shelleyTheme: {
backgroundColor: color.primary_c500,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const ErrorScreen = () => {
}

const useStyles = () => {
const {atoms} = useTheme()
const {atoms, color} = useTheme()

const styles = StyleSheet.create({
root: {
Expand All @@ -45,6 +45,7 @@ const useStyles = () => {
text: {
...atoms.heading_3_medium,
...atoms.text_center,
color: color.text_gray_max,
maxWidth: 340,
},
button: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const LoadingLinkScreen = () => {
}

const useStyles = () => {
const {atoms} = useTheme()
const {atoms, color} = useTheme()

const styles = StyleSheet.create({
root: {
Expand All @@ -32,6 +32,7 @@ const useStyles = () => {
text: {
...atoms.heading_3_medium,
...atoms.text_center,
color: color.text_gray_max,
maxWidth: 340,
},
})
Expand Down
3 changes: 2 additions & 1 deletion packages/theme/src/themed-palettes/black.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ export const black: ThemedPalette = {
text_primary_low: darkPalette.primary_c300, // disabled, buttons, links
text_primary_on: darkPalette.white_static, // primary color surfaces
text_gray_max: darkPalette.gray_cmax, // hover and pressed
text_gray_min: darkPalette.gray_cmin, // disabled text
text_gray_normal: darkPalette.gray_c900, // draws attention
text_gray_medium: darkPalette.gray_c600, // accent or additional text
text_gray_low: darkPalette.gray_c400, // disabled text
text_gray_low: darkPalette.gray_c400, // accent or additional text
text_error: darkPalette.sys_magenta_c500, // error messages
text_warning: darkPalette.sys_orange_c500, // warning messages
text_success: darkPalette.secondary_c500, // success messages
Expand Down
3 changes: 2 additions & 1 deletion packages/theme/src/themed-palettes/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ export const light: ThemedPalette = {
text_primary_low: lightPalette.primary_c300, // disabled, buttons, links
text_primary_on: lightPalette.white_static, // primary color surfaces
text_gray_max: lightPalette.gray_cmax, // hover and pressed
text_gray_min: lightPalette.gray_cmin, // disabled text
text_gray_normal: lightPalette.gray_c900, // draws attention
text_gray_medium: lightPalette.gray_c600, // accent or additional text
text_gray_low: lightPalette.gray_c400, // disabled text
text_gray_low: lightPalette.gray_c400, // accent or additional text
text_error: lightPalette.sys_magenta_c500, // error messages
text_warning: lightPalette.sys_orange_c500, // warning messages
text_success: lightPalette.secondary_c500, // success messages
Expand Down
1 change: 1 addition & 0 deletions packages/theme/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export type ThemedPalette = BasePalette & {
text_primary_low: HexColor
text_primary_on: HexColor
text_gray_max: HexColor
text_gray_min: HexColor
text_gray_normal: HexColor
text_gray_medium: HexColor
text_gray_low: HexColor
Expand Down

0 comments on commit 5207d85

Please sign in to comment.