Skip to content

Commit

Permalink
- Graph: Make the main canvas background to mid-gray, when on
Browse files Browse the repository at this point in the history
  non-dark color themes. (EXPERIMENTAL)
  • Loading branch information
rncbc committed Jan 18, 2024
1 parent f29de19 commit e0fad98
Show file tree
Hide file tree
Showing 19 changed files with 51 additions and 44 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ ChangeLog

GIT HEAD

- Graph: Make the main canvas background to mid-gray, when on
non-dark color themes. (EXPERIMENTAL)

- Turkish (tr) translation added (by Orkun Arapoglu, thanks).

- Updated copyright headers into the New Year (2024).
Expand Down
6 changes: 5 additions & 1 deletion src/qjackctlGraph.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// qjackctlGraph.cpp
//
/****************************************************************************
Copyright (C) 2003-2023, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2003-2024, rncbc aka Rui Nuno Capela. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -1270,6 +1270,10 @@ qjackctlGraphCanvas::qjackctlGraphCanvas ( QWidget *parent )
QGraphicsView::setResizeAnchor(QGraphicsView::NoAnchor);
QGraphicsView::setDragMode(QGraphicsView::NoDrag);

const QPalette& pal = QGraphicsView::palette();
if (pal.base().color().value() > 192)
QGraphicsView::setBackgroundRole(QPalette::Mid);

m_editor = new QLineEdit(this);
m_editor->setFrame(false);
// m_editor->setAlignment(Qt::AlignCenter | Qt::AlignVCenter);
Expand Down
2 changes: 1 addition & 1 deletion src/qjackctlGraph.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// qjackctlGraph.h
//
/****************************************************************************
Copyright (C) 2003-2023, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2003-2024, rncbc aka Rui Nuno Capela. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/qjackctlGraphForm.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// qjackctlGraphForm.cpp
//
/****************************************************************************
Copyright (C) 2003-2023, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2003-2024, rncbc aka Rui Nuno Capela. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/qjackctlGraphForm.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// qjackctlGraphForm.h
//
/****************************************************************************
Copyright (C) 2003-2023, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2003-2024, rncbc aka Rui Nuno Capela. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/qjackctlGraphForm.ui
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<author>rncbc aka Rui Nuno Capela</author>
<comment>JACK Audio Connection Kit - Qt GUI Interface.

Copyright (C) 2003-2022, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2003-2024, rncbc aka Rui Nuno Capela. All rights reserved.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_cs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ Jste si jistý?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1872"/>
<location filename="../qjackctlGraph.cpp" line="2005"/>
<location filename="../qjackctlGraph.cpp" line="1876"/>
<location filename="../qjackctlGraph.cpp" line="2009"/>
<source>Connect</source>
<translation>Spojit</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2077"/>
<location filename="../qjackctlGraph.cpp" line="2081"/>
<source>Disconnect</source>
<translation>Rozpojit</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,13 +478,13 @@ Sind Sie sicher?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1872"/>
<location filename="../qjackctlGraph.cpp" line="2005"/>
<location filename="../qjackctlGraph.cpp" line="1876"/>
<location filename="../qjackctlGraph.cpp" line="2009"/>
<source>Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2077"/>
<location filename="../qjackctlGraph.cpp" line="2081"/>
<source>Disconnect</source>
<translation type="unfinished"></translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,13 +478,13 @@ Está seguro?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1872"/>
<location filename="../qjackctlGraph.cpp" line="2005"/>
<location filename="../qjackctlGraph.cpp" line="1876"/>
<location filename="../qjackctlGraph.cpp" line="2009"/>
<source>Connect</source>
<translation>Conectar</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2077"/>
<location filename="../qjackctlGraph.cpp" line="2081"/>
<source>Disconnect</source>
<translation>Desconectar</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ de toutes les applications clientes.
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1872"/>
<location filename="../qjackctlGraph.cpp" line="2005"/>
<location filename="../qjackctlGraph.cpp" line="1876"/>
<location filename="../qjackctlGraph.cpp" line="2009"/>
<source>Connect</source>
<translation>Connecter</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2077"/>
<location filename="../qjackctlGraph.cpp" line="2081"/>
<source>Disconnect</source>
<translation>Déconnecter</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,13 +488,13 @@ Sei sicuro?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1872"/>
<location filename="../qjackctlGraph.cpp" line="2005"/>
<location filename="../qjackctlGraph.cpp" line="1876"/>
<location filename="../qjackctlGraph.cpp" line="2009"/>
<source>Connect</source>
<translation>Connetti</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2077"/>
<location filename="../qjackctlGraph.cpp" line="2081"/>
<source>Disconnect</source>
<translation>Disconnetti</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ Are you sure?</source>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1872"/>
<location filename="../qjackctlGraph.cpp" line="2005"/>
<location filename="../qjackctlGraph.cpp" line="1876"/>
<location filename="../qjackctlGraph.cpp" line="2009"/>
<source>Connect</source>
<translation>接続</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2077"/>
<location filename="../qjackctlGraph.cpp" line="2081"/>
<source>Disconnect</source>
<translation>切断</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ Are you sure?</source>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1872"/>
<location filename="../qjackctlGraph.cpp" line="2005"/>
<location filename="../qjackctlGraph.cpp" line="1876"/>
<location filename="../qjackctlGraph.cpp" line="2009"/>
<source>Connect</source>
<translation>연결하기</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2077"/>
<location filename="../qjackctlGraph.cpp" line="2081"/>
<source>Disconnect</source>
<translation>연결해제</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,13 +488,13 @@ Bent u zeker?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1872"/>
<location filename="../qjackctlGraph.cpp" line="2005"/>
<location filename="../qjackctlGraph.cpp" line="1876"/>
<location filename="../qjackctlGraph.cpp" line="2009"/>
<source>Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2077"/>
<location filename="../qjackctlGraph.cpp" line="2081"/>
<source>Disconnect</source>
<translation type="unfinished"></translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_pt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ Tem certeza?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1872"/>
<location filename="../qjackctlGraph.cpp" line="2005"/>
<location filename="../qjackctlGraph.cpp" line="1876"/>
<location filename="../qjackctlGraph.cpp" line="2009"/>
<source>Connect</source>
<translation>Conectar</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2077"/>
<location filename="../qjackctlGraph.cpp" line="2081"/>
<source>Disconnect</source>
<translation>Disconnectar</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,13 @@ Are you sure?</source>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1872"/>
<location filename="../qjackctlGraph.cpp" line="2005"/>
<location filename="../qjackctlGraph.cpp" line="1876"/>
<location filename="../qjackctlGraph.cpp" line="2009"/>
<source>Connect</source>
<translation>Соединить</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2077"/>
<location filename="../qjackctlGraph.cpp" line="2081"/>
<source>Disconnect</source>
<translation>Отсоединить</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_sk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ Ste si istý?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1872"/>
<location filename="../qjackctlGraph.cpp" line="2005"/>
<location filename="../qjackctlGraph.cpp" line="1876"/>
<location filename="../qjackctlGraph.cpp" line="2009"/>
<source>Connect</source>
<translation>Spojiť</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2077"/>
<location filename="../qjackctlGraph.cpp" line="2081"/>
<source>Disconnect</source>
<translation>Rozpojiť</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_tr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ Emin misin?</translation>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1872"/>
<location filename="../qjackctlGraph.cpp" line="2005"/>
<location filename="../qjackctlGraph.cpp" line="1876"/>
<location filename="../qjackctlGraph.cpp" line="2009"/>
<source>Connect</source>
<translation>Bağlan</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2077"/>
<location filename="../qjackctlGraph.cpp" line="2081"/>
<source>Disconnect</source>
<translation>Bağlantıyı Kes</translation>
</message>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/qjackctl_uk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,13 +478,13 @@ Are you sure?</source>
<context>
<name>qjackctlGraphCanvas</name>
<message>
<location filename="../qjackctlGraph.cpp" line="1872"/>
<location filename="../qjackctlGraph.cpp" line="2005"/>
<location filename="../qjackctlGraph.cpp" line="1876"/>
<location filename="../qjackctlGraph.cpp" line="2009"/>
<source>Connect</source>
<translation&apos;єднати</translation>
</message>
<message>
<location filename="../qjackctlGraph.cpp" line="2077"/>
<location filename="../qjackctlGraph.cpp" line="2081"/>
<source>Disconnect</source>
<translation>Від’єднати</translation>
</message>
Expand Down

0 comments on commit e0fad98

Please sign in to comment.