mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
Refactor and enhance UI components
- Updated `CableInfoWidget` to include a TODO comment regarding manufacturer verification. - Refactored `CustomTab` and `CustomTabWidget` to remove notification label functionality, simplifying the class structure. - Improved `DeviceInfoWidget` by adding a destructor to manage graphics view memory and initializing graphics scene properly. - Introduced `DiskUsageBar` and `DiskUsageWidget` classes to manage disk usage visualization, including hover popover functionality for detailed information. - Enhanced `MediaPreviewDialog` to include more descriptive window titles and adjusted status label styling based on platform. - Added platform-specific functionality in `macos.h` and `macos.mm` for popover management. - Cleaned up `ToolboxWidget` by adjusting label styles and removing fixed sizes for better responsiveness.
This commit is contained in:
@@ -167,7 +167,6 @@ ClickableWidget *ToolboxWidget::createToolbox(iDescriptorTool tool,
|
||||
{
|
||||
ClickableWidget *b = new ClickableWidget();
|
||||
b->setStyleSheet("padding: 5px; border: none; outline: none;");
|
||||
b->setFixedSize(200, 120);
|
||||
|
||||
QVBoxLayout *layout = new QVBoxLayout(b);
|
||||
|
||||
@@ -235,15 +234,13 @@ ClickableWidget *ToolboxWidget::createToolbox(iDescriptorTool tool,
|
||||
}
|
||||
// Title
|
||||
QLabel *titleLabel = new QLabel(title);
|
||||
titleLabel->setFont(QFont("Arial", 10, QFont::Bold));
|
||||
titleLabel->setAlignment(Qt::AlignCenter);
|
||||
|
||||
// Description
|
||||
QLabel *descLabel = new QLabel(description);
|
||||
descLabel->setFont(QFont("Arial", 8));
|
||||
descLabel->setWordWrap(true);
|
||||
descLabel->setAlignment(Qt::AlignCenter);
|
||||
descLabel->setStyleSheet("color: #666;");
|
||||
descLabel->setStyleSheet("color: #666; font-size: 12px;");
|
||||
|
||||
layout->addWidget(iconLabel);
|
||||
layout->addWidget(titleLabel);
|
||||
|
||||
Reference in New Issue
Block a user