# QAdwaitaStyle **Repository Path**: nkzhangkun/QAdwaitaStyle ## Basic Information - **Project Name**: QAdwaitaStyle - **Description**: 仿GNOME Shell的Qt样式插件 - **Primary Language**: C++ - **License**: GPL-2.0 - **Default Branch**: FedoraQt - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2019-08-09 - **Last Updated**: 2024-09-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README QAdwaitaStyle ========== Qt 样式插件,从 https://github.com/FedoraQt/adwaita-qt 修改而来,支持静态插件 A native style to bend Qt5/Qt6 applications to look like they belong into GNOME Shell. This style provides all four variants of GTK Adwaita theme: * Adwaita ![Widget Factory](screenshots/widgets-adwaita.png) * Adwaita-dark ![Widget Factory](screenshots/widgets-adwaita-dark.png) * HighContrast ![Widget Factory](screenshots/widgets-highcontrast.png) * HighContrastInverse ![Widget Factory](screenshots/widgets-highcontrastinverse.png) ## 安装/编译 使用Qt module的形式,可以直接qmake和make install安装到Qt目录 ``` qmake make make install ``` ## 使用 ``` qApp->setStyle("adwaita-dark");//qApp->setStyle("adwaita") qApp->setPalette(qApp->style()->standardPalette()); ```