-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow prompt icon to be colorized #330
Conversation
|
Not a new icon, but text:
|
That's in regards to how we should change the console input vs output icons. Not about the prompt icon. |
You're right. Sorry for noise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approach ACK 2162b3e.
2162b3e
to
f5e5511
Compare
updated from 2162b3e -> f5e5511 (pr330.01 -> pr330.02, diff) Changes:
@hebasto in regard to your comment If I keep the original dimensions, the pixmap will look warped in the designer tool: It is ok to set the dimensions of the
There is no change in the size of this
|
f5e5511
to
be85c7f
Compare
updated from f5e5511 -> be85c7f (pr330.02 -> pr330.03, diff) Changes:
|
Does this line (from #275) Line 853 in 123b401
|
@hebasto
Another thing to notice is that because this is currently a disabled Applying this PR on top of master (which requires changes to do), fixes this "bug", makes the There's currently a silent merge conflict with #275 and will be pushing changes to fix this. |
be85c7f
to
82d430d
Compare
updated from be85c7f -> 82d430d (pr330.03 -> pr330.04) Changes:
|
What about a minimal change: --- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -525,6 +525,8 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty
//: Secondary shortcut to decrease the RPC console font size.
GUIUtil::AddButtonShortcut(ui->fontSmallerButton, tr("Ctrl+_"));
+ ui->promptIcon->setIcon(platformStyle->SingleColorIcon(QStringLiteral(":/icons/prompticon")));
+
// Install event filter for up and down arrow
ui->lineEdit->installEventFilter(this);
ui->lineEdit->setMaxLength(16 * 1024 * 1024); ? |
82d430d
to
8095c81
Compare
updated from 82d430d -> 8095c81 (pr330.04 -> pr330.05) Changed:
|
Prefer to fix with b942216 or such. It'd be nice to magically make theming work everywhere, but this approach doesn't seem worth it. |
8095c81
to
2f23ad2
Compare
Updated from 8095c81 -> 2f23ad2 (pr330.05 -> pr330.06) Changes: Tested on macOS 11.3
macOS 10.15.7
macOS 10.14.6
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 2f23ad2
2f23ad2 qt: allow prompt icon to be colorized (Jarol Rodriguez) Pull request description: Opening the console on macOS, while in dark mode, the console prompt icon will not be colorized white like other icons. This applies the `platformStyle` to the icon so that It can be colorized white. While here, refactor the `promptIcon` widget from a `QPushButton` to `QLabel`; which is more appropriate, per [Qt Docs](https://doc.qt.io/qt-5/qlabel.html#details): > QLabel is used for displaying text or an image. No user interaction functionality is provided. | Master | PR | | ----------- | ----------- | | ![Screen Shot 2021-05-14 at 11 46 33 PM](https://user-images.githubusercontent.com/23396902/118347462-8f689780-b511-11eb-8335-329f7d2a9992.png) | ![Screen Shot 2021-05-14 at 11 45 41 PM](https://user-images.githubusercontent.com/23396902/118347463-92638800-b511-11eb-9044-073f51ef27ff.png) | ACKs for top commit: hebasto: ACK 2f23ad2 Tree-SHA512: 21f8b1610e4820c9064bbd08608b5467e5b9499e2a3b149ff223e37b60e7d560497255c733eafa5434628a84b9f7b7c91d8b0f34b02be2f9ceb3ab21a4d555a8
Opening the console on macOS, while in dark mode, the console prompt icon will not be colorized white like other icons. This applies the
platformStyle
to the icon so that It can be colorized white.While here, refactor the
promptIcon
widget from aQPushButton
toQLabel
; which is more appropriate, per Qt Docs: