diff --git a/.vscode/settings.json b/.vscode/settings.json index 12caad62..335a1e49 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -147,6 +147,7 @@ "cfenv": "cpp", "typeindex": "cpp", "typeinfo": "cpp", - "valarray": "cpp" + "valarray": "cpp", + "locale": "cpp" } } \ No newline at end of file diff --git a/README.md b/README.md index ff10a459..e16fa36f 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@

- @@ -21,17 +20,26 @@ -




+


-




-
+ +

+

Developers:

+

+ + + +

+

+

If you have found bugs in our product or have suggestions, please write about them:

+


- +


@@ -179,7 +187,7 @@
-


+




diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000..76be8453 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,18 @@ +
+

Security Policy

+

Supported Versions

+

Only Latest Version is Supported

+
+Reporting a Vulnerability:
+I. Add Title
+II. Add Description
+III. Add Screen
+
+

Contacts

+ + + + +

+

Thanks <3

+
\ No newline at end of file diff --git a/src/CodeKeeper/keeperFunc/functional.cpp b/src/CodeKeeper/keeperFunc/functional.cpp index b5ce80c4..e059a9eb 100644 --- a/src/CodeKeeper/keeperFunc/functional.cpp +++ b/src/CodeKeeper/keeperFunc/functional.cpp @@ -218,7 +218,6 @@ void MainWindow::fOpenAccountWindow() void MainWindow::openSettingsWindow() { - QThread *settingsWindowThread = new QThread; QObject::connect(settingsWindowThread, &QThread::started, this, [this]() { QRect geo = this->geometry(); diff --git a/src/CodeKeeper/keeperFunc/getProjectInfo.cpp b/src/CodeKeeper/keeperFunc/getProjectInfo.cpp index 974b441c..5fcd2976 100644 --- a/src/CodeKeeper/keeperFunc/getProjectInfo.cpp +++ b/src/CodeKeeper/keeperFunc/getProjectInfo.cpp @@ -96,7 +96,7 @@ QString MainWindow::getRepositoryData(QString git_url, QTableWidget *table) { QString prefix = "https://github.com/"; QString repo = git_url.replace(prefix, ""); - QString repoData; // Declare repoData as a non-const QString + QString repoData; QString name, createdAt, openIssues, forks, lang, stars, repoSize, license, totalDownloads, release, releaseDate, lastCommitS; @@ -116,10 +116,10 @@ QString MainWindow::getRepositoryData(QString git_url, QTableWidget *table) request.setRawHeader("Accept", "application/vnd.github.v3+json"); QNetworkReply *reply = manager->get(request); - QEventLoop loop; // Create a QEventLoop + QEventLoop loop; QObject::connect(reply, &QNetworkReply::finished, &loop, &QEventLoop::quit); - loop.exec(); // Block until the lambda function has finished + loop.exec(); if (reply->error()) { qWarning() << "Error:" << reply->errorString(); @@ -138,7 +138,6 @@ QString MainWindow::getRepositoryData(QString git_url, QTableWidget *table) openIssues = QString::number(obj["open_issues"].toInt()); - // repoData += " \n Watchers: " + QString::number(obj["watchers"].toInt()) + " "; forks = QString::number(obj["forks"].toInt()); lang = obj["language"].toString(); @@ -238,7 +237,7 @@ QString MainWindow::getRepositoryData(QString git_url, QTableWidget *table) QNetworkReply *releasesReply = manager->get(releasesRequest); QObject::connect(releasesReply, &QNetworkReply::finished, &loop, &QEventLoop::quit); - loop.exec(); // Block until the lambda function has finished + loop.exec(); if (releasesReply->error()) { qWarning() << "Error:" << releasesReply->errorString(); @@ -284,6 +283,7 @@ QString MainWindow::getRepositoryData(QString git_url, QTableWidget *table) table->setItem(0, 0, new QTableWidgetItem("Repo")); table->setItem(0, 1, new QTableWidgetItem(name)); table->item(0, 0)->setTextAlignment(Qt::AlignCenter); + table->item(0, 1)->setTextAlignment(Qt::AlignCenter); QStringList dataList, textList; @@ -356,6 +356,7 @@ QString MainWindow::getRepositoryData(QString git_url, QTableWidget *table) QTableWidgetItem *item = table->item(row, col); if (item) { item->setFlags(item->flags() & ~Qt::ItemIsEditable); + item->setTextAlignment(Qt::AlignCenter); } } } diff --git a/src/CodeKeeper/keeperFunc/projectsFunc.cpp b/src/CodeKeeper/keeperFunc/projectsFunc.cpp index af81ae9a..cf02043e 100644 --- a/src/CodeKeeper/keeperFunc/projectsFunc.cpp +++ b/src/CodeKeeper/keeperFunc/projectsFunc.cpp @@ -122,15 +122,49 @@ void MainWindow::openProject(QListWidget *listWidget, QListWidgetItem *item) { if (item) { QDialog dialog(this); - dialog.setFixedSize(550, 550); - dialog.setWindowTitle(tr("Edit project")); + dialog.setFixedWidth(550); + dialog.setMinimumHeight(500); + dialog.setWindowTitle(tr("Project")); dialog.setWindowFlags(windowFlags() | Qt::FramelessWindowHint); + QPushButton *saveDataBtn = new QPushButton(); + saveDataBtn->setText("Save"); + saveDataBtn->setStyleSheet("font-size: " + font_size + "pt;"); + saveDataBtn->setFixedSize(100, 25); + saveDataBtn->setIcon(QPixmap(":/save.png")); + saveDataBtn->setIconSize(QSize(10, 10)); + saveDataBtn->setFont(selectedFont); + + QPushButton *cancelBtn = new QPushButton(""); + cancelBtn->setFixedSize(15, 15); + cancelBtn->setStyleSheet("QPushButton {" + " border-color: rgba(0, 0, 0, 0);" + " background-color: rgba(0, 0, 0, 0);" + " background-image: url(':/red.png');" + " background-repeat: no-repeat;" + "}" + "QPushButton:hover {" + " border-color: rgba(0, 0, 0, 0);" + " background-image: url(':/redHovered.png');" + " background-repeat: no-repeat;" + " background-color: rgba(0, 0, 0, 0);" + "}"); + QVBoxLayout *centralLayout = new QVBoxLayout(&dialog); + QHBoxLayout *controlButtons = new QHBoxLayout(); + + QSpacerItem *spacer = new QSpacerItem(100, 0, QSizePolicy::Expanding, QSizePolicy::Minimum); + + controlButtons->addWidget(cancelBtn); + controlButtons->addItem(spacer); + controlButtons->addWidget(saveDataBtn); + + centralLayout->addLayout(controlButtons); + QTabWidget *tabs = new QTabWidget(); tabs->setMovable(true); - // tabs->setTabPosition(QTabWidget::South); + tabs->setTabPosition(QTabWidget::South); QWidget *projectTab = new QWidget(); QGridLayout mainLayout(projectTab); @@ -174,36 +208,23 @@ void MainWindow::openProject(QListWidget *listWidget, QListWidgetItem *item) QTableWidget *git_stats = new QTableWidget(); git_stats->setFont(selectedFont); - git_stats->setStyleSheet( - "QTableWidget{ background-color: #0d1117; alternate-background-color: #171b22; " - "selection-background-color: #336fc9; show-decoration-selected: 1; font-size: " - + font_size + "pt; border: 0px;}"); + git_stats->setStyleSheet("QTableWidget{font-size:" + font_size + "pt;}"); git_stats->horizontalHeader()->setDefaultAlignment(Qt::AlignCenter); git_stats->verticalHeader()->setDefaultAlignment(Qt::AlignCenter); git_stats->setContentsMargins(0, 0, 0, 0); + git_stats->setAlternatingRowColors(true); - QVBoxLayout *layout = new QVBoxLayout; - layout->addWidget(git_stats); - layout->setAlignment(Qt::AlignCenter); + QHBoxLayout *statsLayout = new QHBoxLayout(); - QPushButton *saveDataBtn = new QPushButton(); - saveDataBtn->setText("Save"); - saveDataBtn->setStyleSheet("font-size: " + font_size + "pt;"); - saveDataBtn->setFixedSize(100, 25); - saveDataBtn->setIcon(QPixmap(":/save.png")); - saveDataBtn->setIconSize(QSize(10, 10)); - saveDataBtn->setFont(selectedFont); + QSpacerItem *leftSpacer = + new QSpacerItem(0, 10, QSizePolicy::Expanding, QSizePolicy::Minimum); + QSpacerItem *rightSpacer = + new QSpacerItem(0, 10, QSizePolicy::Expanding, QSizePolicy::Minimum); - QPushButton *cancelBtn = new QPushButton(); - cancelBtn->setText("Cancel"); - cancelBtn->setStyleSheet("font-size: " + font_size + "pt;"); - cancelBtn->setFixedSize(100, 25); - cancelBtn->setIcon(QPixmap(":/quit.png") - .scaled(font_size.toInt() + 3, font_size.toInt() + 3, - Qt::KeepAspectRatio, Qt::SmoothTransformation)); - cancelBtn->setIconSize(QSize(10, 10)); - cancelBtn->setFont(selectedFont); + // statsLayout->addItem(leftSpacer); + statsLayout->addWidget(git_stats); + // statsLayout->addItem(rightSpacer); QPushButton *openButton = new QPushButton(); openButton->setText("Open"); @@ -222,21 +243,17 @@ void MainWindow::openProject(QListWidget *listWidget, QListWidgetItem *item) loadDocumentations(dir, *documentation); documentation->setCurrentText(projectData[2]); - mainLayout.addWidget(title, 0, 0, 1, 2); - mainLayout.addWidget(linkToGit, 1, 0, 1, 2); - mainLayout.addWidget(documentation, 2, 0); - mainLayout.addWidget(openButton, 2, 1); - mainLayout.addLayout(layout, 4, 0, 1, 2); - mainLayout.addWidget(saveDataBtn, 6, 0, 1, 2, Qt::AlignCenter); - mainLayout.addWidget(cancelBtn, 7, 0, 1, 2, Qt::AlignCenter); - mainLayout.addWidget(lastMod, 5, 0, 1, 2, Qt::AlignCenter); + mainLayout.addWidget(title, 2, 0, 1, 2); + mainLayout.addWidget(linkToGit, 3, 0, 1, 2); + mainLayout.addWidget(documentation, 4, 0); + mainLayout.addWidget(openButton, 4, 1); + mainLayout.addLayout(statsLayout, 5, 0, 5, 2); + mainLayout.addWidget(lastMod, 10, 0, 1, 2, Qt::AlignCenter); QWidget *issuesTab = new QWidget(); QVBoxLayout issuesLayout(issuesTab); QTextBrowser *issuesLabel = new QTextBrowser(); - // issuesLabel->setWordWrap(true); - // issuesLabel->setTextFormat(Qt::RichText); issuesLabel->setTextInteractionFlags(Qt::TextBrowserInteraction); issuesLabel->setText("Issues"); issuesLabel->setOpenExternalLinks(true); @@ -270,8 +287,6 @@ void MainWindow::openProject(QListWidget *listWidget, QListWidgetItem *item) updateProjectData(&projectTitle, &projectLink, &projectDocumentation, &projectCreatedTime, &PCreatedTime, &PGit); - - dialog.close(); }); QObject::connect(cancelBtn, &QPushButton::clicked, [&]() { dialog.close(); }); @@ -287,8 +302,6 @@ void MainWindow::openProject(QListWidget *listWidget, QListWidgetItem *item) QString projectLink = linkToGit->text(); QString repo = projectLink.replace(prefix, ""); - // createGitBadges(repo, git_stats); - QThread *thread = new QThread; QObject::connect(thread, &QThread::started, this, [this, projectData, repo, git_stats, issuesLabel]() { diff --git a/src/CodeKeeper/mainwindow.cpp b/src/CodeKeeper/mainwindow.cpp index ca5818a4..dece7b28 100644 --- a/src/CodeKeeper/mainwindow.cpp +++ b/src/CodeKeeper/mainwindow.cpp @@ -88,7 +88,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) appIcon = new QLabel(); appIcon->setAlignment(Qt::AlignCenter); appIcon->setPixmap( - QPixmap(":/icon.png").scaled(300, 300, Qt::KeepAspectRatio, Qt::SmoothTransformation)); + QPixmap(":/logo.png").scaled(300, 300, Qt::KeepAspectRatio, Qt::SmoothTransformation)); // settings btn openSettingsBtn = diff --git a/src/CodeKeeper/settingsFunc/GitHubReleaseDownloader.h b/src/CodeKeeper/settingsFunc/GitHubReleaseDownloader.h index e6d71a52..ef8256c5 100644 --- a/src/CodeKeeper/settingsFunc/GitHubReleaseDownloader.h +++ b/src/CodeKeeper/settingsFunc/GitHubReleaseDownloader.h @@ -35,7 +35,7 @@ void downloadFileFromLatestRelease(const QString &owner, const QString &repo, QNetworkAccessManager manager; QNetworkRequest request; - request.setUrl(QUrl("https://api.github.com/repos/DXS-SQUAD/CodeKeeper/releases/latest")); + request.setUrl(QUrl("https://api.github.com/repos/DXS-GROUP/CodeKeeper/releases/latest")); request.setHeader(QNetworkRequest::UserAgentHeader, "CodeKeeper"); request.setRawHeader("Authorization", ("Bearer " + git_token).toUtf8()); request.setRawHeader("X-GitHub-Api-Version", "2022-11-28"); diff --git a/src/CodeKeeper/settingsFunc/functional.cpp b/src/CodeKeeper/settingsFunc/functional.cpp index 6c579a85..9a4c8763 100644 --- a/src/CodeKeeper/settingsFunc/functional.cpp +++ b/src/CodeKeeper/settingsFunc/functional.cpp @@ -69,10 +69,18 @@ void SettingsWindow::checkUpdates() " Update"); downloadUpdate->setFixedSize(100, 25); + qDebug() << newAppVersion << " " << currentAppVersion; + if (newAppVersion == currentAppVersion) { + iconLabel->setPixmap( + QPixmap(":/check-mark.png") + .scaled(100, 100, Qt::KeepAspectRatio, Qt::SmoothTransformation)); updateInfoLabel->setText("You are running the latest version of the app."); verInfoLabel->setText("Current version: " + currentAppVersion); } else { + iconLabel->setPixmap( + QPixmap(":/refresh.png") + .scaled(100, 100, Qt::KeepAspectRatio, Qt::SmoothTransformation)); updateInfoLabel->setText("A new version of the application is available."); verInfoLabel->setText("Current version: " + currentAppVersion + "\nNew version: " + newAppVersion); @@ -85,22 +93,9 @@ void SettingsWindow::checkUpdates() layout->addWidget(verInfoLabel, 5, 0, 1, 2, Qt::AlignCenter); connect(closeWindow, &QPushButton::clicked, [&]() { dialog.close(); }); - /*connect(downloadUpdate, &QPushButton::clicked, [&]() { - QFileInfo fileInfo(QCoreApplication::applicationFilePath()); - QString dir = fileInfo.absoluteDir().path(); - QString fileName = fileInfo.fileName(); - - qDebug() << "File path: " << dir; - - downloadFileFromLatestRelease("DXS-SQUAD", "CodeKeeper", "CodeKeeper", updateInfoLabel, - git_user, git_token); - - verInfoLabel->hide(); - downloadUpdate->hide(); - });*/ connect(downloadUpdate, &QPushButton::clicked, [&]() { - QDesktopServices::openUrl(QUrl("https://github.com/DXS-SQUAD/CodeKeeper/releases/latest")); + QDesktopServices::openUrl(QUrl("https://github.com/DXS-GROUP/CodeKeeper/releases/latest")); }); dialog.exec(); @@ -117,8 +112,6 @@ void SettingsWindow::checkRepo() loop.exec(); if (reply->error() == QNetworkReply::NoError) { - // qDebug() << repo; - // qDebug() << "Repository is available"; repoAvailability->setText("Repository is available"); } else { qDebug() << repo; @@ -199,19 +192,11 @@ void SettingsWindow::saveData() isRepoSize = CisRepoSize->isChecked(); globalSettings->setValue("isRepoSize", isRepoSize); - messageBox->setIcon(QMessageBox::Information); - messageBox->setWindowTitle("CodeKeeper - Settings"); - messageBox->setText("To apply the settings, restart the application."); - - messageBox->setWindowFlags(windowFlags() | Qt::FramelessWindowHint); - // messageBox->exec(); - MainWindow *mainWindow = static_cast(parent()); setFontPr2(&selectedFont, &font_size); mainWindow->setFontPr1(&selectedFont, &font_size); mainWindow->getSettingsData(); - // mainWindow->createCustomTitlebar(); mainWindow->setConnectionStatus(); mainWindow->createConnection(dir); mainWindow->loadNotes(); @@ -219,10 +204,8 @@ void SettingsWindow::saveData() mainWindow->loadProjects(); SyncWindow *syncWindow = static_cast(parent()); - // syncWindow->setFontStyle(); AccountWindow *accountWindow = static_cast(parent()); - // accountWindow->setFontStyle(); } void SettingsWindow::fopenFolder() @@ -250,10 +233,9 @@ void SettingsWindow::fopenFolder() QString SettingsWindow::getNewAppVersion() { QNetworkAccessManager *manager = new QNetworkAccessManager(this); - QUrl url("https://api.github.com/repos/DXS-SQUAD/CodeKeeper/releases/latest"); + QUrl url("https://api.github.com/repos/DXS-GROUP/CodeKeeper/releases/latest"); QUrlQuery query; - query.addQueryItem("login", git_user); url.setQuery(query); QNetworkRequest request(url); @@ -272,6 +254,7 @@ QString SettingsWindow::getNewAppVersion() QJsonObject obj = doc.object(); QString version = obj["tag_name"].toString(); + qDebug() << version; reply->deleteLater(); @@ -290,10 +273,10 @@ void SettingsWindow::setFontPr2(QFont *selectedFont, int *font_size_int) + "pt;} QTabBar::tab:selected {font-size: " + font_size + "pt;}"); saveBtn->setFont(*selectedFont); - saveBtn->setStyleSheet("font-size: " + font_size + "pt;"); - - quitBtn->setFont(*selectedFont); - quitBtn->setStyleSheet("font-size: " + font_size + "pt;"); + saveBtn->setStyleSheet( + "QPushButton {background-color: transparent; color: #fff; font-size: " + font_size + + "pt;} QPushButton:hover {background-color: transparent; color: #7289DA; font-size: " + + font_size + "pt;}"); appName->setFont(*selectedFont); diff --git a/src/CodeKeeper/settingswindow.cpp b/src/CodeKeeper/settingswindow.cpp index 36d7a719..ff77bf47 100644 --- a/src/CodeKeeper/settingswindow.cpp +++ b/src/CodeKeeper/settingswindow.cpp @@ -58,23 +58,33 @@ SettingsWindow::SettingsWindow(QWidget *parent) : QMainWindow{ parent } // tabs tabs = new QTabWidget(); tabs->setMovable(true); + tabs->setTabPosition(QTabWidget::South); QHBoxLayout *BtnsL = new QHBoxLayout(); - saveBtn = new QPushButton(QPixmap(":/save.png") - .scaled(font_size.toInt() + 1, font_size.toInt() + 1, - Qt::KeepAspectRatio, Qt::SmoothTransformation), - " Apply"); + saveBtn = new QPushButton("Apply"); saveBtn->setFixedSize(100, 25); - quitBtn = new QPushButton(QPixmap(":/quit.png") - .scaled(font_size.toInt() + 1, font_size.toInt() + 1, - Qt::KeepAspectRatio, Qt::SmoothTransformation), - " Quit"); - quitBtn->setFixedSize(100, 25); + quitBtn = new QPushButton(); + quitBtn->setStyleSheet("QPushButton {" + " border-color: rgba(0, 0, 0, 0);" + " background-color: rgba(0, 0, 0, 0);" + " background-image: url(':/red.png');" + " background-repeat: no-repeat;" + "}" + "QPushButton:hover {" + " border-color: rgba(0, 0, 0, 0);" + " background-image: url(':/redHovered.png');" + " background-repeat: no-repeat;" + " background-color: rgba(0, 0, 0, 0);" + "}"); + quitBtn->setFixedSize(15, 15); + + QSpacerItem *spacer = new QSpacerItem(100, 0, QSizePolicy::Expanding, QSizePolicy::Minimum); - BtnsL->addWidget(saveBtn); BtnsL->addWidget(quitBtn); + BtnsL->addItem(spacer); + BtnsL->addWidget(saveBtn); // control buttons @@ -90,14 +100,14 @@ SettingsWindow::SettingsWindow(QWidget *parent) : QMainWindow{ parent } urlToRepo = new QLabel(); urlToRepo->setText("Source"); + "href=\"https://github.com/DXS-GROUP/CodeKeeper\">Source"); urlToRepo->setTextFormat(Qt::RichText); urlToRepo->setTextInteractionFlags(Qt::TextBrowserInteraction); urlToRepo->setOpenExternalLinks(true); urlToRepo->setAlignment(Qt::AlignHCenter | Qt::AlignTop); versionInfo = new QLabel(); - versionInfo->setText("0.1.7.1"); + versionInfo->setText("0.1.8"); versionInfo->setAlignment(Qt::AlignCenter); checkUpdatesBtn = @@ -343,8 +353,8 @@ SettingsWindow::SettingsWindow(QWidget *parent) : QMainWindow{ parent } tabs->setIconSize(QSize(font_size.toInt(), font_size.toInt())); tabs->setTabBarAutoHide(true); - mainLayout->addWidget(tabs); mainLayout->addLayout(BtnsL); + mainLayout->addWidget(tabs); // connects connect(saveBtn, SIGNAL(clicked()), this, SLOT(saveData())); diff --git a/src/resources/check-mark.png b/src/resources/check-mark.png new file mode 100644 index 00000000..e6c65596 Binary files /dev/null and b/src/resources/check-mark.png differ diff --git a/src/resources/icon.png b/src/resources/icon.png index a1e143d1..44cdebed 100644 Binary files a/src/resources/icon.png and b/src/resources/icon.png differ diff --git a/src/resources/logo.png b/src/resources/logo.png new file mode 100644 index 00000000..f1b9f2a4 Binary files /dev/null and b/src/resources/logo.png differ diff --git a/src/resources/resources.qrc b/src/resources/resources.qrc index 5dc1850c..fa00b331 100644 --- a/src/resources/resources.qrc +++ b/src/resources/resources.qrc @@ -1,5 +1,7 @@ + check-mark.png + logo.png download.png sync.png user.png diff --git a/src/stylesheet/stylesheet.qss b/src/stylesheet/stylesheet.qss index e9f0bb9a..c70e6387 100644 --- a/src/stylesheet/stylesheet.qss +++ b/src/stylesheet/stylesheet.qss @@ -3,6 +3,17 @@ QDialog { border-width: 2px; } +QTableWidget { + background-color: #0d1117; + alternate-background-color: #171b22; + show-decoration-selected: 0; + border: 0px; + border-radius: 5px; +} +QTableWidget::item { + border-radius: 5px; +} + QWidget { background-color: #0D1117; border-width: 2px; @@ -202,41 +213,41 @@ QMenu::item:selected { text-decoration: none; } QMenu::indicator { - border-radius: 4px; + border-radius: 5px; width: 10px; height: 10px; } QMenu::indicator:unchecked { - border-radius: 4px; + border-radius: 5px; background-color: #171b22; } QMenu::indicator:unchecked:hover { - border-radius: 4px; + border-radius: 5px; background-color: #171b22; } QMenu::indicator:unchecked:pressed { - border-radius: 4px; + border-radius: 5px; background-color: #171b22; } QMenu::indicator:checked { - border-radius: 4px; + border-radius: 5px; background-color: #c3e88d; } QMenu::indicator:checked:hover { - border-radius: 4px; + border-radius: 5px; background-color: #c3e88d; } QMenu::indicator:checked:pressed { - border-radius: 4px; + border-radius: 5px; background-color: #c3e88d; } QMenu::indicator:indeterminate:hover { - border-radius: 4px; + border-radius: 5px; background-color: #c3e88d; } QMenu::indicator:indeterminate:pressed { - border-radius: 4px; + border-radius: 5px; background-color: #c3e88d; } @@ -462,7 +473,7 @@ QScrollBar:horizontal { background: #0D1117; border-radius: 3px; height: 6px; - margin: 0px 3px 3px 0px; + margin: 0px 0px 0px 0px; } QScrollBar::handle:vertical { diff --git a/src/stylesheet/stylesheet_setting_window.qss b/src/stylesheet/stylesheet_setting_window.qss index 61b0238c..37f73c7c 100644 --- a/src/stylesheet/stylesheet_setting_window.qss +++ b/src/stylesheet/stylesheet_setting_window.qss @@ -38,46 +38,46 @@ QCheckBox { color: #fff; } QCheckBox::indicator { - border-radius: 4px; + border-radius: 5px; width: 10px; height: 10px; } QCheckBox::indicator:unchecked { - border-radius: 4px; + border-radius: 5px; background-color: #0d1117; } QCheckBox::indicator:unchecked:hover { - border-radius: 4px; + border-radius: 5px; background-color: #0d1117; } QCheckBox::indicator:unchecked:pressed { - border-radius: 4px; + border-radius: 5px; background-color: #0d1117; } QCheckBox::indicator:checked { - border-radius: 4px; + border-radius: 5px; background-color: #c3e88d; } QCheckBox::indicator:checked:hover { - border-radius: 4px; + border-radius: 5px; background-color: #c3e88d; } QCheckBox::indicator:checked:pressed { - border-radius: 4px; + border-radius: 5px; background-color: #c3e88d; } QCheckBox::indicator:indeterminate:hover { - border-radius: 4px; + border-radius: 5px; background-color: #c3e88d; } QCheckBox::indicator:indeterminate:pressed { - border-radius: 4px; + border-radius: 5px; background-color: #c3e88d; }