|
Wavelength
Privacy-focused, cross-platform, and open-source communication application
|
A custom QPushButton styled with a simple cyberpunk aesthetic for chat input areas. More...
#include <cyber_chat_button.h>
Public Member Functions | |
| CyberChatButton (const QString &text, QWidget *parent=nullptr) | |
| Constructs a CyberChatButton. Initializes the button with the given text and sets the cursor to a pointing hand. | |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| Overridden paint event handler. Draws the custom cyberpunk button appearance. Renders the clipped background, neon border, and text, adjusting colors based on hover and press states (isDown(), underMouse()). | |
A custom QPushButton styled with a simple cyberpunk aesthetic for chat input areas.
This button features a dark blue background, clipped corners, a neon blue border, and neon blue text. The background and border colors change slightly on hover and press. It's designed to be a visually distinct button, often used for sending messages.
|
explicit |
Constructs a CyberChatButton. Initializes the button with the given text and sets the cursor to a pointing hand.
| text | The text to display on the button. |
| parent | Optional parent widget. |
|
overrideprotected |
Overridden paint event handler. Draws the custom cyberpunk button appearance. Renders the clipped background, neon border, and text, adjusting colors based on hover and press states (isDown(), underMouse()).
| event | The paint event. |