Skip to content

Commit

Permalink
Fix colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nighty3098 committed Sep 28, 2024
1 parent 73450a6 commit 3af3d89
Show file tree
Hide file tree
Showing 62 changed files with 167 additions and 158 deletions.
18 changes: 9 additions & 9 deletions src/CodeKeeper/accountFunc/functional.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ void AccountWindow::setTasksProgress()
calculatePercentage(incompleteTasksCount, totalTasks)};

QString labels[] = {tr("Completed"), tr("Started"), tr("Not Started")};
QColor colors[] = {QColor("#78b3ba"), QColor("#b1e032"), QColor("#c75d5e")};
QColor colors[] = {QColor("#85b9b3"), QColor("#a9bf85"), QColor("#e08581")};

for (int i = 0; i < 3; ++i)
{
Expand All @@ -434,15 +434,15 @@ void AccountWindow::setTasksProgress()
QColor progressColor;
if (percentage < 26)
{
progressColor = QColor("#c75d5e");
progressColor = QColor("#e08581");
}
else if (percentage < 51)
{
progressColor = QColor("#e09132");
progressColor = QColor("#d8bd85");
}
else
{
progressColor = QColor("#78b3ba");
progressColor = QColor("#85b9b3");
}
tasksStatsProgress->setProgressColor(progressColor);
}
Expand Down Expand Up @@ -477,7 +477,7 @@ void AccountWindow::setProjectsStats()

float values[] = {ns_p, s_p, fl_p, f_p};
QString labels[] = {tr("Not started"), tr("In Dev"), tr("On Review"), tr("Finished")};
QColor colors[] = {QColor("#c75d5e"), QColor("#e09132"), QColor("#b1e032"), QColor("#78b3ba")};
QColor colors[] = {QColor("#e08581"), QColor("#d8bd85"), QColor("#a9bf85"), QColor("#85b9b3")};

for (int i = 0; i < 4; ++i)
{
Expand All @@ -490,10 +490,10 @@ void AccountWindow::setLangsStats(const QString langsData, CircleChart *langsCha
ColorValueDisplay *langsValuesDisplay)
{
QStringList langsColors;
langsColors << "#c75d5e"
<< "#e09132"
<< "#b1e032"
<< "#78b3ba"
langsColors << "#e08581"
<< "#d8bd85"
<< "#a9bf85"
<< "#85b9b3"
<< "#5dc7c3"
<< "#c75da9"
<< "#c7c25d"
Expand Down
32 changes: 16 additions & 16 deletions src/CodeKeeper/keeperFunc/functional.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void MainWindow::setConnectionStatus()
QPixmap(":/connected.png")
.scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation));
isConnected->setToolTip(tr("Connected"));
sizeGrip2->setStyleSheet("background-color: #37d442; border-radius: 5px;");
sizeGrip2->setStyleSheet("background-color: #a9bf85; border-radius: 6px;");
}
else
{
Expand All @@ -121,7 +121,7 @@ void MainWindow::setConnectionStatus()
QPixmap(":/auto_sync_on.png")
.scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation));
isAutoSync->setToolTip(tr("Auto sync on"));
sizeGrip2->setStyleSheet("background-color: #37d442; border-radius: 5px;");
sizeGrip2->setStyleSheet("background-color: #a9bf85; border-radius: 6px;");
}
else
{
Expand Down Expand Up @@ -357,13 +357,13 @@ void MainWindow::setStyle(QFont *selectedFont, int *font_size_int)
QString font_size_hello = QString::number(*font_size_int * 1.4);

timeLabel->setFont(*selectedFont);
timeLabel->setStyleSheet("background: transparent; font-size: " + font_size_clock + "pt; color: #799987;");
timeLabel->setStyleSheet("background: transparent; font-size: " + font_size_clock + "pt; color: #a9bf85;");

dateLabel->setFont(*selectedFont);
dateLabel->setStyleSheet("background: transparent; font-size: " + font_size_date + "pt; color: #799987;");
dateLabel->setStyleSheet("background: transparent; font-size: " + font_size_date + "pt; color: #a9bf85;");

helloLabel->setFont(*selectedFont);
helloLabel->setStyleSheet("background: transparent; font-size: " + font_size_hello + "pt; color: #799987;");
helloLabel->setStyleSheet("background: transparent; font-size: " + font_size_hello + "pt; color: #a9bf85;");

projectsMainLabel->setFont(*selectedFont);
projectsMainLabel->setStyleSheet("font-size: " + font_size + "pt;");
Expand Down Expand Up @@ -409,8 +409,8 @@ void MainWindow::setStyle(QFont *selectedFont, int *font_size_int)
"}"
"QListWidget::Item {"
"margin: 0px;"
"background-color: rgba(211, 102, 107, 250); color: #000000; "
"border-width: 0px; border-color: rgba(211, 102, 107, 250); "
"background-color: #e08581; color: #000000; "
"border-width: 0px; border-color: #e08581; "
"border-radius: 5px;"
"font-size: " +
font_size +
Expand All @@ -427,7 +427,7 @@ void MainWindow::setStyle(QFont *selectedFont, int *font_size_int)
"}"
"QListWidget::Item {"
"margin: 0px;"
"background-color: rgba(231, 232, 141, 250); "
"background-color: #d8bd85; "
"color: #000000; text-decoration: underline; "
"border-width: 0px; "
"border-radius: 5px;"
Expand All @@ -446,7 +446,7 @@ void MainWindow::setStyle(QFont *selectedFont, int *font_size_int)
"}"
"QListWidget::Item {"
"margin: 0px;"
"background-color: rgba(195, 232, 141, 250); "
"background-color: #a9bf85; "
"color: #000000;"
"border-radius: 5px;"
"line-through; border-width: 0px; "
Expand All @@ -465,7 +465,7 @@ void MainWindow::setStyle(QFont *selectedFont, int *font_size_int)
"}"
"QListWidget::Item {"
"margin: 0px;"
"background-color: rgba(211, 102, 107, 250);"
"background-color: #e08581;"
"color: #000000; border-width: 0px; "
"border-radius: 5px;"
"border-color: #ff757f; "
Expand All @@ -484,7 +484,7 @@ void MainWindow::setStyle(QFont *selectedFont, int *font_size_int)
"}"
"QListWidget::Item {"
"margin: 0px;"
"background-color: rgba(231, 232, 141, 250); color: #000000; "
"background-color: #d8bd85; color: #000000; "
"border-radius: 5px;"
"border-width: 0px; border-color: #ffc777; "
"font-size: " +
Expand All @@ -502,8 +502,8 @@ void MainWindow::setStyle(QFont *selectedFont, int *font_size_int)
"}"
"QListWidget::Item {"
"margin: 0px;"
"background-color: rgba(126, 156, 216, 250 "
"); color: #000000; border-width: 0px; "
"background-color: #85b9b3; "
"color: #000000; border-width: 0px; "
"border-radius: 5px;"
"border-color: #82aaff; "
"font-size: " +
Expand All @@ -521,7 +521,7 @@ void MainWindow::setStyle(QFont *selectedFont, int *font_size_int)
"}"
"QListWidget::Item {"
"margin: 0px;"
"background-color: rgba(195, 232, 141, 250); color: #000000; "
"background-color: #a9bf85; color: #000000; "
"border-radius: 5px;"
"border-width: 0px; border-color: #c3e88d; "
"font-size: " +
Expand Down Expand Up @@ -569,8 +569,8 @@ void MainWindow::setStyle(QFont *selectedFont, int *font_size_int)
windowTitle->setStyleSheet("font-size: " + font_size + "pt;");

tasksProgress->setFont(*selectedFont);
tasksProgress->setStyleSheet("background-color: rgba(211, 102, 107, 250); selection-background-color: "
"rgba(195, 232, 141, 250); color: #222436; font-size: " +
tasksProgress->setStyleSheet("background-color: #e08581; selection-background-color: "
"#a9bf85; color: #222436; font-size: " +
font_size + "pt;");

menu->setStyleSheet("font-size: " + font_size + "pt;");
Expand Down
16 changes: 12 additions & 4 deletions src/CodeKeeper/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,15 +381,23 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)

tasksMenuBtn->setMenu(tasksMenu);

projectsList = new QComboBox();
projectsList->setFixedSize(300, 25);
projectsList->setPlaceholderText("Select your project ... ");

projectsList->addItem("CodeKeeper");
projectsList->addItem("SDash");

tasksProgress = new QProgressBar();
tasksProgress->setMaximum(100);
tasksProgress->setMaximumWidth(300);
tasksProgress->setFixedHeight(20);
tasksProgress->setFixedHeight(25);
tasksProgress->setAlignment(Qt::AlignCenter);

tasksStatsL->addItem(spacer1);
tasksStatsL->addWidget(tasksMenuBtn);
tasksStatsL->addWidget(tasksProgress);
tasksStatsL->addWidget(projectsList);
// tasksStatsL->addWidget(tasksProgress);
tasksStatsL->addItem(spacer2);

label_1 = new QLabel(tr("Incomplete"));
Expand Down Expand Up @@ -434,10 +442,12 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
taskText = new QLineEdit();
taskText->setPlaceholderText(tr(" Task..."));
taskText->setFixedHeight(25);
taskText->setMaximumWidth(400);

tasksGLayout->addLayout(tasksStatsL, 0, 0, 1, 3);

QSplitter *tasksSplitter = new QSplitter(Qt::Horizontal);
tasksSplitter->setStyleSheet("QSplitter::handle:horizontal {background-color: transparent; color: transparent;} QSplitter::handle:vertical {background-color: transparent; color: transparent;}");

tasksSplitter->addWidget(incompleteTasks);
tasksSplitter->addWidget(inprocessTasks);
Expand All @@ -450,9 +460,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
tasksGLayout->addWidget(label_1, 1, 0, Qt::AlignHCenter);
tasksGLayout->addWidget(label_2, 1, 1, Qt::AlignHCenter);
tasksGLayout->addWidget(label_3, 1, 2, Qt::AlignHCenter);

tasksGLayout->addWidget(tasksSplitter, 2, 0, 1, 3);

tasksGLayout->addWidget(taskText, 4, 1);

// ========================================================
Expand Down
1 change: 1 addition & 0 deletions src/CodeKeeper/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ class MainWindow : public QMainWindow
QLabel *label_3;

QLineEdit *taskText;
QComboBox *projectsList;

// ========================================================

Expand Down
2 changes: 1 addition & 1 deletion src/CodeKeeper/settingswindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ SettingsWindow::SettingsWindow(QWidget *parent) : QMainWindow{parent}
appName->setStyleSheet("font-size: 42px;");

urlToRepo = new QLabel();
urlToRepo->setText("<a style='color: #84a0bf; text-decoration: none; font-size: " + font_size +
urlToRepo->setText("<a style='color: #a9bf85; text-decoration: none; font-size: " + font_size +
"' "
"href=\"https://github.com/DXS-GROUP/CodeKeeper\">Source</a>");
urlToRepo->setTextFormat(Qt::RichText);
Expand Down
Binary file modified src/resources/about.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/auto_sync_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/auto_sync_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/bold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/check-mark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/checkbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/connected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/delete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/disconnected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/document.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/down-arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/download.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/expand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/export.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/folder-open.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/h1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/h2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/h3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/home_dir.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/italic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/resources/main.png
Binary file modified src/resources/new.png
Binary file modified src/resources/new_folder.png
Binary file modified src/resources/note.png
Binary file modified src/resources/numList.png
Binary file modified src/resources/open.png
Binary file modified src/resources/palette.png
Binary file modified src/resources/paste.png
Binary file modified src/resources/project.png
Binary file modified src/resources/quit.png
Binary file modified src/resources/quote.png
Binary file modified src/resources/read.png
Binary file modified src/resources/refresh.png
Binary file modified src/resources/rename.png
Binary file modified src/resources/resize.png
2 changes: 1 addition & 1 deletion src/resources/resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
<file>main.png</file>
<file>project.png</file>
<file>task.png</file>
<file>about.png</file>
<file>refresh.png</file>
<file>storage.png</file>
<file>palette.png</file>
Expand Down Expand Up @@ -78,5 +77,6 @@
<file>git.png</file>
<file>tea.svg</file>
<file>resize.png</file>
<file>about.png</file>
</qresource>
</RCC>
Binary file modified src/resources/retry.png
Binary file modified src/resources/save.png
Binary file modified src/resources/search.png
Binary file modified src/resources/settings.png
Binary file modified src/resources/sorting.png
Binary file modified src/resources/storage.png
Binary file modified src/resources/strikethrough.png
Binary file modified src/resources/sync.png
Binary file modified src/resources/table.png
Binary file modified src/resources/task.png
Binary file modified src/resources/trash.png
Binary file modified src/resources/up-arrow.png
Binary file modified src/resources/user.png
Binary file modified src/resources/view.png
Loading

0 comments on commit 3af3d89

Please sign in to comment.