Skip to content

Commit

Permalink
Made black button for info: #252
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jan 9, 2025
1 parent d5c15f7 commit f9113ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 2 additions & 4 deletions src-admin/src/Tabs/Bridges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ export class Bridges extends BridgesAndDevices<BridgesProps, BridgesState> {
color: hasError
? '#FF0000'
: this.props.themeType === 'dark'
? 'white'
? '#FFFFFF'
: '#00000080',
}}
onClick={e => this.requestAdditionalInformation(e, bridge.uuid, device.uuid)}
Expand Down Expand Up @@ -1498,9 +1498,7 @@ export class Bridges extends BridgesAndDevices<BridgesProps, BridgesState> {
>
<span>
<IconButton
style={{
color: this.props.themeType === 'dark' ? 'white' : '#00000080',
}}
style={{ color: '#FFF'}}

Check failure on line 1501 in src-admin/src/Tabs/Bridges.tsx

View workflow job for this annotation

GitHub Actions / check-and-lint

Insert `·`

Check failure on line 1501 in src-admin/src/Tabs/Bridges.tsx

View workflow job for this annotation

GitHub Actions / check-and-lint

Insert `·`
disabled={bridge.enabled && !allowDisable}
onClick={e => {
e.stopPropagation();
Expand Down
8 changes: 3 additions & 5 deletions src-admin/src/Tabs/BridgesAndDevices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class BridgesAndDevices<TProps extends BridgesAndDevicesProps, TState extends Br
slotProps={{ popper: { sx: { pointerEvents: 'none' } } }}
>
<IconButton
style={{ height: 40 }}
style={{ height: 40, color: this.isDevice ? undefined : '#FFFFFF' }}
onClick={() => {
this.reAnnounceDevice(deviceOrBridge.uuid).catch(e => window.alert(`Cannot re-announce: ${e}`));
this.setState({ showQrCode: deviceOrBridge });
Expand Down Expand Up @@ -355,11 +355,9 @@ class BridgesAndDevices<TProps extends BridgesAndDevicesProps, TState extends Br
: '#980000'
: this.isDevice
? this.props.themeType === 'dark'
? 'white'
? '#FFFFFF'
: '#00000080'
: this.props.themeType === 'dark'
? 'white'
: '#00000080',
: '#FFFFFF',
}}
onClick={e => this.requestAdditionalInformation(e, deviceOrBridge.uuid)}
>
Expand Down

0 comments on commit f9113ff

Please sign in to comment.