MainWindow 0 0 800 518 小智Ai客户端 0 0 QTabBar::tab { background-color: #f0f0f0; /* Light gray background */ color: #333; /* Dark text */ padding: 8px 20px; /* Padding around text */ border-top-left-radius: 8px; /* Rounded top corners */ border-top-right-radius: 8px; border: 1px solid #ddd; /* Light border */ margin-right: 2px; /* Space between tabs */ min-width: 100px; /* Ensure tabs aren't too small */ } QTabBar::tab:selected { background-color: #ffffff; /* White background for selected tab */ color: #007bff; /* Blue text for selected tab */ border: 1px solid #ccc; border-bottom: 2px solid #007bff; /* Blue underline for selected tab */ } QTabBar::tab:hover { background-color: #e9e9e9; /* Slightly darker on hover */ } QTabBar { /* Optional: Remove the default frame if needed */ /* border: none; */ } 0 QWidget#mainPage { background-color: rgba(255, 255, 255, 140); border-radius: 8px; } 0 0 0 0 QFrame::StyledPanel QFrame::Raised Microsoft YaHei UI 14 75 true color: #2196F3; padding: 10px; background-color: #E3F2FD; border-radius: 8px; 状态: 未连接 Qt::AlignCenter 24 margin: 15px; 😊 Qt::AlignCenter 12 待命 Qt::AlignCenter true 0 70 16777215 72 QFrame::StyledPanel QFrame::Raised 0 10 5 10 5 0 5 0 0 0 0 72 34 点击静音 true Qt::Horizontal 0 0 0 0 0 0 50 border-radius: 8px; 8 10 0 10 6 0 36 按住后说话 0 36 打断对话 4 0 36 输入文字... 60 36 发送 0 36 开始对话 0 36 手动对话 QFrame::StyledPanel QFrame::Raised 14 75 true 暂无IOT设备 暂未实现 Qt::AlignCenter QFrame::StyledPanel QFrame::Raised 5 16 10 16 10 Qt::Vertical 20 40 18 75 true config.json文件配置 Qt::AlignCenter 10 Qt::Vertical QSizePolicy::Expanding 20 40 启用唤醒词唤醒: 20 20 Qt::Horizontal 40 20 10 10 唤醒词 (多个唤醒词请用英文逗号 ',' 分隔): 14 75 true Qt::LeftToRight API 服务配置 Qt::AlignCenter 6 12 Device ID: OTA地址: 0 0 0 0 0 0 https:// http:// 1 0 API接口地址: 0 0 0 0 0 0 wss:// ws:// 1 0 Access Token: Qt::Vertical QSizePolicy::Fixed 20 15 14 75 true Home Assistant 服务配置 Qt::AlignCenter HA-Server: Qt::AlignCenter 0 0 0 0 0 0 https:// http:// 1 0 Home Assistant服务地址,例如:ha.aslant.top Port: Qt::AlignCenter 默认端口:8123 长期访问令牌: Qt::AlignCenter QLineEdit::Password 获取方法:账户 - 安全 - 创建令牌 0 30 导入Home Assistant设备 保存设置 QTabBar QWidget
qtabbar.h