Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions data/Avro_Easy.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions data/Borno.json

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions data/Munir_Optima.json

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions data/National_Jatiya.json

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions data/Probhat.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions data/avrophonetic.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions data/khipro.json

Large diffs are not rendered by default.

18 changes: 15 additions & 3 deletions src/frontend/AboutFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,28 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <QFile>
#include <QTextOption>
#include "AboutFile.h"
#include "ui_AboutFile.h"

AboutFile::AboutFile(QWidget *parent) :
AboutFile::AboutFile(QString iconTheme, QWidget *parent) :
QDialog(parent),
ui(new Ui::AboutFile) {
ui->setupUi(this);

bool darkMode = (iconTheme == "white");
QFile qss(darkMode ? ":/styles/dark.qss" : ":/styles/light.qss");
if (qss.open(QFile::ReadOnly | QFile::Text)) {
setStyleSheet(QString::fromUtf8(qss.readAll()));
}

// Justify the developer comment so multi-line text reads as a clean block.
QTextOption commentOption = ui->txtDevComment->document()->defaultTextOption();
commentOption.setAlignment(Qt::AlignJustify);
ui->txtDevComment->document()->setDefaultTextOption(commentOption);

this->setWindowFlags(Qt::Dialog | Qt::WindowTitleHint | Qt::WindowCloseButtonHint | Qt::WindowStaysOnTopHint);
this->setFixedSize(QSize(this->width(), this->height()));
}

AboutFile::~AboutFile() {
Expand All @@ -34,7 +46,7 @@ AboutFile::~AboutFile() {

void AboutFile::setDialogType(DialogType type) {
if (type == AboutLayout) {
this->setWindowTitle("About This Layout...");
this->setWindowTitle("About This Layout");
loadLayoutInfo();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/AboutFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class AboutFile : public QDialog {
Q_OBJECT

public:
explicit AboutFile(QWidget *parent = nullptr);
explicit AboutFile(QString iconTheme, QWidget *parent = nullptr);

~AboutFile() override;

Expand Down
Loading
Loading