Skip to content

Commit

Permalink
Merge pull request #2179 from myxmaster/improve-close-channel-button
Browse files Browse the repository at this point in the history
Improve delete/close button colors
  • Loading branch information
kaloudis authored May 8, 2024
2 parents b6caff2 + 4295fc3 commit c71db86
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 24 deletions.
8 changes: 5 additions & 3 deletions components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ function Button(props: ButtonProps) {
? themeColor('highlight')
: secondary
? themeColor('secondary')
: warning
? themeColor('delete')
: themeColor('text'),
...buttonStyle
}}
Expand All @@ -101,9 +103,9 @@ function Button(props: ButtonProps) {
color: iconOnly
? textColor
: quaternary
? warning
? themeColor('warning')
: textColor
? textColor
: warning
? themeColor('text')
: secondary
? themeColor('highlight')
: themeColor('background'),
Expand Down
7 changes: 0 additions & 7 deletions views/Channels/Channel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -592,12 +592,6 @@ export default class ChannelView extends React.Component<
})
}
warning={!confirmCloseChannel}
titleStyle={{
color: 'white'
}}
buttonStyle={{
backgroundColor: themeColor('delete')
}}
/>
</View>
)}
Expand Down Expand Up @@ -694,7 +688,6 @@ export default class ChannelView extends React.Component<
deliveryAddress
)
}
quaternary
warning
/>
</View>
Expand Down
8 changes: 1 addition & 7 deletions views/Settings/AddContact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1252,13 +1252,7 @@ export default class AddContact extends React.Component<
this.deleteContact();
}
}}
containerStyle={{
borderColor: themeColor('delete')
}}
titleStyle={{
color: themeColor('delete')
}}
secondary
warning
/>
</View>
)}
Expand Down
8 changes: 1 addition & 7 deletions views/Settings/NodeConfiguration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1737,13 +1737,7 @@ export default class NodeConfiguration extends React.Component<
this.deleteNodeConfig();
}
}}
containerStyle={{
borderColor: themeColor('delete')
}}
titleStyle={{
color: themeColor('delete')
}}
secondary
warning
/>
</View>
)}
Expand Down

0 comments on commit c71db86

Please sign in to comment.