";
+
+ if(isCreated) {
+ html += "
";
+ }
+ if(isReleaseDate) {
+ html += "
";
+ }
+ if(isLastCommit) {
+ html += "
";
+ }
+ if(isPullReq) {
+ html += "
";
+ }
+ if(isLicense) {
+ html += "
";
+ }
+ if(isRelease) {
+ html += "
";
+ }
+ if(isIssue) {
+ html += "
";
+ }
+ if(isDownloads) {
+ html += "
";
+ }
+ if(isCommit) {
+ html += "
";
+ }
+ if(isLang) {
+ html += "
";
+ }
+ if(isStars) {
+ html += "
";
+ }
+ if(isForks) {
+ html += "
";
+ }
+ if(isRepoSize) {
+ html += "
";
+ }
+
+ html += "
"
+ " "
+ "";
+
+ page->setHtml(html);
}
void MainWindow::openProject(QListWidget *listWidget, QListWidgetItem *item)
{
if (item) {
QDialog dialog(this);
- dialog.setFixedSize(300, 450);
+ dialog.setFixedSize(400, 550);
dialog.setWindowTitle(tr("Edit project"));
dialog.setWindowFlags(windowFlags() | Qt::FramelessWindowHint);
@@ -187,7 +203,7 @@ void MainWindow::openProject(QListWidget *listWidget, QListWidgetItem *item)
linkToGit->setFont(selectedFont);
QComboBox *documentation = new QComboBox();
- documentation->setFixedSize(140, 25);
+ documentation->setFixedSize(190, 25);
documentation->setFont(selectedFont);
QLabel *lastMod = new QLabel();
@@ -213,9 +229,9 @@ void MainWindow::openProject(QListWidget *listWidget, QListWidgetItem *item)
cancelBtn->setText("Cancel");
cancelBtn->setStyleSheet("font-size: " + font_size + "pt;");
cancelBtn->setFixedHeight(25);
- cancelBtn->setIcon(
- QPixmap(":/quit.png")
- .scaled(font_size.toInt() + 3, font_size.toInt() + 3, Qt::KeepAspectRatio, Qt::SmoothTransformation));
+ 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);
@@ -223,9 +239,9 @@ void MainWindow::openProject(QListWidget *listWidget, QListWidgetItem *item)
openButton->setText("Open");
openButton->setStyleSheet("font-size: " + font_size + "pt;");
openButton->setFixedHeight(25);
- openButton->setIcon(
- QPixmap(":/read.png")
- .scaled(font_size.toInt() + 3, font_size.toInt() + 3, Qt::KeepAspectRatio, Qt::SmoothTransformation));
+ openButton->setIcon(QPixmap(":/read.png")
+ .scaled(font_size.toInt() + 3, font_size.toInt() + 3,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation));
openButton->setIconSize(QSize(10, 10));
openButton->setFont(selectedFont);
diff --git a/src/CodeKeeper/keeperFunc/tasksFunc.cpp b/src/CodeKeeper/keeperFunc/tasksFunc.cpp
index 63a5d9c3..eca52afa 100644
--- a/src/CodeKeeper/keeperFunc/tasksFunc.cpp
+++ b/src/CodeKeeper/keeperFunc/tasksFunc.cpp
@@ -117,7 +117,7 @@ void MainWindow::renameItemOnDoubleClick(QListWidget *listWidget, QListWidgetIte
lineEdit.setText(oldData[0]);
- QPushButton okButton(tr("OK"), &dialog);
+ QPushButton okButton(tr("Save"), &dialog);
okButton.setFont(selectedFont);
okButton.setFixedSize(200, 25);
okButton.setStyleSheet("background-color: #2D4F67; border-color: #2D4F67; font-size: "
diff --git a/src/CodeKeeper/mainwindow.cpp b/src/CodeKeeper/mainwindow.cpp
index 8c3347b7..27e401f0 100644
--- a/src/CodeKeeper/mainwindow.cpp
+++ b/src/CodeKeeper/mainwindow.cpp
@@ -78,20 +78,22 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
appIcon = new QLabel();
appIcon->setAlignment(Qt::AlignCenter);
- appIcon->setPixmap(QPixmap(":/icon.png").scaled(200, 200, Qt::KeepAspectRatio, Qt::SmoothTransformation));
+ appIcon->setPixmap(
+ QPixmap(":/icon.png").scaled(200, 200, Qt::KeepAspectRatio, Qt::SmoothTransformation));
// settings btn
- openSettingsBtn = new QPushButton(
- QPixmap(":/settings.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- " Settings");
+ openSettingsBtn =
+ new QPushButton(QPixmap(":/settings.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ " Settings");
openSettingsBtn->setFixedSize(100, 25);
// sync btn
- syncDataBtn = new QPushButton(
- QPixmap(":/retry.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- " Sync data");
+ syncDataBtn = new QPushButton(QPixmap(":/retry.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ " Sync data");
syncDataBtn->setFixedSize(100, 25);
// ========================================================
@@ -158,9 +160,9 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
connect(noteEdit, &QMarkdownTextEdit::textChanged, this, &MainWindow::setHeader);
menuButton = new QToolButton;
- menuButton->setIcon(
- QPixmap(":/main.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation));
+ menuButton->setIcon(QPixmap(":/main.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation));
menuButton->setIconSize(QSize(10, 10));
menuButton->setPopupMode(QToolButton::InstantPopup);
menuButton->setStyleSheet(
@@ -169,32 +171,34 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
menu = new QMenu(menuButton);
QMenu *viewMenu = new QMenu("View", menu);
- viewMenu->setIcon(
- QPixmap(":/view.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation));
-
- newNote = menu->addAction(
- QPixmap(":/new.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "New Note", this, SLOT(createNote()), Qt::CTRL + Qt::Key_N);
- rmNote = menu->addAction(
- QPixmap(":/delete.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Remove", this, SLOT(removeNote()), Qt::CTRL + Qt::Key_Delete);
- newFolder = menu->addAction(
- QPixmap(":/new_folder.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "New folder", this, SLOT(createFolder()), Qt::CTRL + Qt::SHIFT + Qt::Key_N);
- renameItemA = menu->addAction(
- QPixmap(":/rename.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Rename", this, SLOT(renameItem()), Qt::Key_F2);
+ viewMenu->setIcon(QPixmap(":/view.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation));
+
+ newNote = menu->addAction(QPixmap(":/new.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "New Note", this, SLOT(createNote()), Qt::CTRL + Qt::Key_N);
+ rmNote = menu->addAction(QPixmap(":/delete.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Remove", this, SLOT(removeNote()), Qt::CTRL + Qt::Key_Delete);
+ newFolder = menu->addAction(QPixmap(":/new_folder.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "New folder", this, SLOT(createFolder()),
+ Qt::CTRL + Qt::SHIFT + Qt::Key_N);
+ renameItemA = menu->addAction(QPixmap(":/rename.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Rename", this, SLOT(renameItem()), Qt::Key_F2);
menu->addSeparator();
expandAllA = menu->addAction(
QPixmap(":/expand.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio,
+ Qt::SmoothTransformation),
"Expand on one stage", [this]() { notesList->expandAll(); }, Qt::CTRL + Qt::Key_E);
menu->addSeparator();
@@ -207,79 +211,81 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
showRender->setCheckable(true);
showRender->setChecked(isVisiblePreview);
viewMenu->addSeparator();
- viewMode = viewMenu->addAction(
- QPixmap(":/view.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Reading mode", this, SLOT(toViewMode()), Qt::CTRL + Qt::SHIFT + Qt::Key_V);
+ viewMode = viewMenu->addAction(QPixmap(":/view.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Reading mode", this, SLOT(toViewMode()),
+ Qt::CTRL + Qt::SHIFT + Qt::Key_V);
viewMode->setCheckable(true);
viewMode->setChecked(isViewMode);
QMenu *editMenu = new QMenu("Edit", menu);
- editMenu->setIcon(
- QPixmap(":/edit.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation));
- setH1A = editMenu->addAction(
- QPixmap(":/h1.png")
- .scaled(font_size.toInt() + 3, font_size.toInt() + 3, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Set H1", this, SLOT(setH1()));
- setH2A = editMenu->addAction(
- QPixmap(":/h2.png")
- .scaled(font_size.toInt() + 3, font_size.toInt() + 3, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Set H2", this, SLOT(setH2()));
- setH3A = editMenu->addAction(
- QPixmap(":/h3.png")
- .scaled(font_size.toInt() + 3, font_size.toInt() + 3, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Set H3", this, SLOT(setH3()));
+ editMenu->setIcon(QPixmap(":/edit.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation));
+ setH1A = editMenu->addAction(QPixmap(":/h1.png")
+ .scaled(font_size.toInt() + 3, font_size.toInt() + 3,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Set H1", this, SLOT(setH1()));
+ setH2A = editMenu->addAction(QPixmap(":/h2.png")
+ .scaled(font_size.toInt() + 3, font_size.toInt() + 3,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Set H2", this, SLOT(setH2()));
+ setH3A = editMenu->addAction(QPixmap(":/h3.png")
+ .scaled(font_size.toInt() + 3, font_size.toInt() + 3,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Set H3", this, SLOT(setH3()));
editMenu->addSeparator();
- setQuoteA = editMenu->addAction(
- QPixmap(":/quote.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Add quote", this, SLOT(setQuote()));
- setListA = editMenu->addAction(
- QPixmap(":/list.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Add list item", this, SLOT(setList()));
- setNumListA = editMenu->addAction(
- QPixmap(":/numList.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Add numbered list", this, SLOT(setNumList()));
- setLinkA = editMenu->addAction(
- QPixmap(":/link.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Add link", this, SLOT(setLink()));
- setTaskA = editMenu->addAction(
- QPixmap(":/checkbox.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Add task", this, SLOT(setTask()));
+ setQuoteA = editMenu->addAction(QPixmap(":/quote.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Add quote", this, SLOT(setQuote()));
+ setListA = editMenu->addAction(QPixmap(":/list.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Add list item", this, SLOT(setList()));
+ setNumListA =
+ editMenu->addAction(QPixmap(":/numList.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Add numbered list", this, SLOT(setNumList()));
+ setLinkA = editMenu->addAction(QPixmap(":/link.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Add link", this, SLOT(setLink()));
+ setTaskA = editMenu->addAction(QPixmap(":/checkbox.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Add task", this, SLOT(setTask()));
editMenu->addSeparator();
- setBoldA = editMenu->addAction(
- QPixmap(":/bold.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Set bold", this, SLOT(setBold()));
- setItalicA = editMenu->addAction(
- QPixmap(":/italic.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Set italic", this, SLOT(setItalic()));
- setStrikeA = editMenu->addAction(
- QPixmap(":/strikethrough.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Set strikethrough", this, SLOT(setStrike()));
- setTableA = editMenu->addAction(
- QPixmap(":/table.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Add table", this, SLOT(setTable()));
+ setBoldA = editMenu->addAction(QPixmap(":/bold.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Set bold", this, SLOT(setBold()));
+ setItalicA = editMenu->addAction(QPixmap(":/italic.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Set italic", this, SLOT(setItalic()));
+ setStrikeA = editMenu->addAction(QPixmap(":/strikethrough.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Set strikethrough", this, SLOT(setStrike()));
+ setTableA = editMenu->addAction(QPixmap(":/table.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Add table", this, SLOT(setTable()));
QMenu *sortMenu = new QMenu("Sort by", menu);
- sortMenu->setIcon(
- QPixmap(":/sorting.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation));
+ sortMenu->setIcon(QPixmap(":/sorting.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation));
nameAction = sortMenu->addAction("Name", this, SLOT(setSortByName()));
dateAction = sortMenu->addAction("Date", this, SLOT(setSortByTime()));
QMenu *exportMenu = new QMenu("Export as", menu);
- exportMenu->setIcon(
- QPixmap(":/export.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation));
+ exportMenu->setIcon(QPixmap(":/export.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation));
exportToHtml = exportMenu->addAction("HTML", this, SLOT(exportNoteToHtml()));
exportToPdf = exportMenu->addAction("Pdf", this, SLOT(exportNoteToPdf()));
@@ -289,54 +295,54 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
menu->addMenu(exportMenu);
menuButton->setMenu(menu);
- setH1B = new QPushButton(
- QPixmap(":/h1.png")
- .scaled(font_size.toInt() + 3, font_size.toInt() + 3, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "");
- setH2B = new QPushButton(
- QPixmap(":/h2.png")
- .scaled(font_size.toInt() + 3, font_size.toInt() + 3, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "");
- setH3B = new QPushButton(
- QPixmap(":/h3.png")
- .scaled(font_size.toInt() + 3, font_size.toInt() + 3, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "");
- setListB = new QPushButton(
- QPixmap(":/list.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "");
- setLinkB = new QPushButton(
- QPixmap(":/link.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "");
- setBoldB = new QPushButton(
- QPixmap(":/bold.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "");
- setItalicB = new QPushButton(
- QPixmap(":/italic.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "");
- setStrikeB = new QPushButton(
- QPixmap(":/strikethrough.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "");
- setTaskB = new QPushButton(
- QPixmap(":/checkbox.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "");
- setNumListB = new QPushButton(
- QPixmap(":/numList.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "");
- setTableB = new QPushButton(
- QPixmap(":/table.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "");
- setQuoteB = new QPushButton(
- QPixmap(":/quote.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "");
+ setH1B = new QPushButton(QPixmap(":/h1.png")
+ .scaled(font_size.toInt() + 3, font_size.toInt() + 3,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "");
+ setH2B = new QPushButton(QPixmap(":/h2.png")
+ .scaled(font_size.toInt() + 3, font_size.toInt() + 3,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "");
+ setH3B = new QPushButton(QPixmap(":/h3.png")
+ .scaled(font_size.toInt() + 3, font_size.toInt() + 3,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "");
+ setListB = new QPushButton(QPixmap(":/list.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "");
+ setLinkB = new QPushButton(QPixmap(":/link.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "");
+ setBoldB = new QPushButton(QPixmap(":/bold.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "");
+ setItalicB = new QPushButton(QPixmap(":/italic.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "");
+ setStrikeB = new QPushButton(QPixmap(":/strikethrough.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "");
+ setTaskB = new QPushButton(QPixmap(":/checkbox.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "");
+ setNumListB = new QPushButton(QPixmap(":/numList.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "");
+ setTableB = new QPushButton(QPixmap(":/table.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "");
+ setQuoteB = new QPushButton(QPixmap(":/quote.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "");
setH1B->setStyleSheet("background-color: #0D1117; border-color: #0D1117; margin-left: 4px;");
setH2B->setStyleSheet("background-color: #0D1117; border-color: #0D1117; margin-left: 4px;");
@@ -415,9 +421,9 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
QSpacerItem *spacer2 = new QSpacerItem(100, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
tasksMenuBtn = new QToolButton;
- tasksMenuBtn->setIcon(
- QPixmap(":/main.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation));
+ tasksMenuBtn->setIcon(QPixmap(":/main.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation));
tasksMenuBtn->setIconSize(QSize(50, 50));
tasksMenuBtn->setFixedSize(30, 30);
tasksMenuBtn->setPopupMode(QToolButton::InstantPopup);
@@ -426,14 +432,14 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
tasksMenu = new QMenu(tasksMenuBtn);
- addTask = tasksMenu->addAction(
- QPixmap(":/new.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Add task", this, SLOT(addNewTask()), Qt::Key_Return);
- rmTask = tasksMenu->addAction(
- QPixmap(":/delete.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Delete task", this, SLOT(removeTask()), Qt::Key_Delete);
+ addTask = tasksMenu->addAction(QPixmap(":/new.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Add task", this, SLOT(addNewTask()), Qt::Key_Return);
+ rmTask = tasksMenu->addAction(QPixmap(":/delete.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Delete task", this, SLOT(removeTask()), Qt::Key_Delete);
tasksMenuBtn->setMenu(tasksMenu);
@@ -514,9 +520,9 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
// menu
projectsMenuButton = new QToolButton();
- projectsMenuButton->setIcon(
- QPixmap(":/main.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation));
+ projectsMenuButton->setIcon(QPixmap(":/main.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation));
projectsMenuButton->setPopupMode(QToolButton::InstantPopup);
projectsMenuButton->setFixedSize(30, 25);
projectsMenuButton->setIconSize(QSize(40, 40));
@@ -526,14 +532,16 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
projectsMenu = new QMenu(projectsMenuButton);
// actions for menu
- newProject = projectsMenu->addAction(
- QPixmap(":/new.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "New", this, SLOT(createProject()), Qt::CTRL + Qt::Key_N);
- rmProject = projectsMenu->addAction(
- QPixmap(":/delete.png")
- .scaled(font_size.toInt() + 1, font_size.toInt() + 1, Qt::KeepAspectRatio, Qt::SmoothTransformation),
- "Remove", this, SLOT(removeProject()), Qt::Key_Delete);
+ newProject =
+ projectsMenu->addAction(QPixmap(":/new.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "New", this, SLOT(createProject()), Qt::CTRL + Qt::Key_N);
+ rmProject =
+ projectsMenu->addAction(QPixmap(":/delete.png")
+ .scaled(font_size.toInt() + 1, font_size.toInt() + 1,
+ Qt::KeepAspectRatio, Qt::SmoothTransformation),
+ "Remove", this, SLOT(removeProject()), Qt::Key_Delete);
projectsMenuButton->setMenu(projectsMenu);
diff --git a/src/CodeKeeper/mainwindow.h b/src/CodeKeeper/mainwindow.h
index 4cc23b30..55cc4d16 100644
--- a/src/CodeKeeper/mainwindow.h
+++ b/src/CodeKeeper/mainwindow.h
@@ -131,6 +131,20 @@ class MainWindow : public QMainWindow
MainWindow(QWidget *parent = nullptr);
~MainWindow();
+ bool isCreated;
+ bool isReleaseDate;
+ bool isLastCommit;
+ bool isPullReq;
+ bool isLicense;
+ bool isRelease;
+ bool isIssue;
+ bool isDownloads;
+ bool isCommit;
+ bool isLang;
+ bool isStars;
+ bool isForks;
+ bool isRepoSize;
+
private slots:
void openSettingsWindow();
void openSyncWindow();
diff --git a/src/CodeKeeper/settingsFunc/functional.cpp b/src/CodeKeeper/settingsFunc/functional.cpp
index e4664062..47dde854 100644
--- a/src/CodeKeeper/settingsFunc/functional.cpp
+++ b/src/CodeKeeper/settingsFunc/functional.cpp
@@ -17,8 +17,9 @@ void SettingsWindow::closeEvent(QCloseEvent *event)
void SettingsWindow::checkUpdates() { }
-void SettingsWindow::checkRepo(QString repo)
+void SettingsWindow::checkRepo()
{
+ QString repo = "https://github.com/" + gitUser->text() + "/" + gitRepo->text();
QNetworkAccessManager nam;
QNetworkReply *reply = nam.get(QNetworkRequest(QUrl(repo)));
@@ -27,8 +28,8 @@ void SettingsWindow::checkRepo(QString repo)
loop.exec();
if (reply->error() == QNetworkReply::NoError) {
- qDebug() << repo;
- qDebug() << "🟢 Repository is available";
+ // qDebug() << repo;
+ // qDebug() << "🟢 Repository is available";
repoAvailability->setText("Repository is available");
} else {
qDebug() << repo;
@@ -82,6 +83,33 @@ void SettingsWindow::saveData()
isCustomTitlebar = customTitleBar->isChecked();
globalSettings->setValue("isCustomTitlebar", isCustomTitlebar);
+ isCreated = CisCreated->isChecked();
+ globalSettings->setValue("isCreated", isCreated);
+ isReleaseDate = CisReleaseDate->isChecked();
+ globalSettings->setValue("isReleaseDate", isReleaseDate);
+ isLastCommit = CisLastCommit->isChecked();
+ globalSettings->setValue("isLastCommit", isLastCommit);
+ isPullReq = CisPullReq->isChecked();
+ globalSettings->setValue("isPullReq", isPullReq);
+ isLicense = CisLicense->isChecked();
+ globalSettings->setValue("isLicense", isLicense);
+ isRelease = CisRelease->isChecked();
+ globalSettings->setValue("isRelease", isRelease);
+ isIssue = CisIssue->isChecked();
+ globalSettings->setValue("isIssue", isIssue);
+ isDownloads = CisDownloads->isChecked();
+ globalSettings->setValue("isDownloads", isDownloads);
+ isCommit = CisCommit->isChecked();
+ globalSettings->setValue("isCommit", isCommit);
+ isLang = CisLang->isChecked();
+ globalSettings->setValue("isLang", isLang);
+ isStars = CisStars->isChecked();
+ globalSettings->setValue("isStars", isStars);
+ isForks = CisForks->isChecked();
+ globalSettings->setValue("isForks", isForks);
+ isRepoSize = CisRepoSize->isChecked();
+ globalSettings->setValue("isRepoSize", isRepoSize);
+
messageBox->setIcon(QMessageBox::Information);
messageBox->setWindowTitle("CodeKeeper - Settings");
messageBox->setText("To apply the settings, restart the application.");
@@ -211,6 +239,34 @@ void SettingsWindow::setFontPr2(QFont *selectedFont, int *font_size_int)
repoAvailability->setFont(*selectedFont);
repoAvailability->setStyleSheet("font-size: " + font_size + "pt;");
+ projectsContentLabel->setFont(*selectedFont);
+
+ CisCreated->setFont(*selectedFont);
+ CisReleaseDate->setFont(*selectedFont);
+ CisLastCommit->setFont(*selectedFont);
+ CisPullReq->setFont(*selectedFont);
+ CisLicense->setFont(*selectedFont);
+ CisRelease->setFont(*selectedFont);
+ CisIssue->setFont(*selectedFont);
+ CisDownloads->setFont(*selectedFont);
+ CisCommit->setFont(*selectedFont);
+ CisLang->setFont(*selectedFont);
+ CisStars->setFont(*selectedFont);
+ CisForks->setFont(*selectedFont);
+
+ CisCreated->setStyleSheet("font-size: " + font_size + "pt;");
+ CisReleaseDate->setStyleSheet("font-size: " + font_size + "pt;");
+ CisLastCommit->setStyleSheet("font-size: " + font_size + "pt;");
+ CisPullReq->setStyleSheet("font-size: " + font_size + "pt;");
+ CisLicense->setStyleSheet("font-size: " + font_size + "pt;");
+ CisRelease->setStyleSheet("font-size: " + font_size + "pt;");
+ CisIssue->setStyleSheet("font-size: " + font_size + "pt;");
+ CisDownloads->setStyleSheet("font-size: " + font_size + "pt;");
+ CisCommit->setStyleSheet("font-size: " + font_size + "pt;");
+ CisLang->setStyleSheet("font-size: " + font_size + "pt;");
+ CisStars->setStyleSheet("font-size: " + font_size + "pt;");
+ CisForks->setStyleSheet("font-size: " + font_size + "pt;");
+
// set Data
fontSelector->setCurrentFont(*selectedFont);
fontSize->setValue(font_size.toInt());
diff --git a/src/CodeKeeper/settingswindow.cpp b/src/CodeKeeper/settingswindow.cpp
index 211e05d9..a17bf076 100644
--- a/src/CodeKeeper/settingswindow.cpp
+++ b/src/CodeKeeper/settingswindow.cpp
@@ -3,6 +3,7 @@
#include