"Some transactions are unconfirmed" but which? #52

Closed
opened 3 years ago by duke · 5 comments
duke commented 3 years ago
Owner

The user is left to guess which addresses have unconfirmed funds and which transactions are not confirmed, leaving them to guess which addresses they can use to send funds. Shitty experience.

We could highlight addresses with unconfirmed funds in red, as one option

The user is left to guess which addresses have unconfirmed funds and which transactions are not confirmed, leaving them to guess which addresses they can use to send funds. Shitty experience. We could highlight addresses with unconfirmed funds in red, as one option
Collaborator

In default and blue themes, addresses and txs are highlighted red. In other themes, the color change may not apply I think because theme's CSS is overriding the change.

Balances table: https://git.hush.is/hush/SilentDragon/src/branch/dev/src/balancestablemodel.cpp#L76

Transactions table: https://git.hush.is/hush/SilentDragon/src/branch/dev/src/txtablemodel.cpp#L113

In default and blue themes, addresses and txs are highlighted red. In other themes, the color change may not apply I think because theme's CSS is overriding the change. Balances table: https://git.hush.is/hush/SilentDragon/src/branch/dev/src/balancestablemodel.cpp#L76 Transactions table: https://git.hush.is/hush/SilentDragon/src/branch/dev/src/txtablemodel.cpp#L113
Poster
Owner

@fekt really good point, I didn't think of that. I was definitely using either the dark or midnight themes when I reported this bug.

@fekt really good point, I didn't think of that. I was definitely using either the dark or midnight themes when I reported this bug.
Collaborator

Confirmed this is a theme issue. Any theme that overrides QTableview::item text color will not have color applied in previously mentioned code and use CSS instead. For dark themes, the text will always be white. See this for example: https://git.hush.is/hush/SilentDragon/src/branch/dev/res/css/dark.css#L5

A fix is to remove QTableview::item from being set in CSS. Then have a theme check in code to set black or white text conditionally based on light or dark theme. The red for unconfirmed txs will also take effect then. I have this done but still testing on Linux and Windows.

Can maybe add colors as constants so it's easier to manage and change in the future.

Confirmed this is a theme issue. Any theme that overrides QTableview::item text color will not have color applied in previously mentioned code and use CSS instead. For dark themes, the text will always be white. See this for example: https://git.hush.is/hush/SilentDragon/src/branch/dev/res/css/dark.css#L5 A fix is to remove QTableview::item from being set in CSS. Then have a theme check in code to set black or white text conditionally based on light or dark theme. The red for unconfirmed txs will also take effect then. I have this done but still testing on Linux and Windows. Can maybe add colors as constants so it's easier to manage and change in the future.
Poster
Owner

@fekt thanks so much for figuring out what the problem was!

@fekt thanks so much for figuring out what the problem was!
Poster
Owner

I am pretty sure @fekt fixed this, as I used the dark theme and now see red for unconfirmed tx's. Closing

I am pretty sure @fekt fixed this, as I used the dark theme and now see red for unconfirmed tx's. Closing
duke closed this issue 2 years ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.