Compare commits

...

4 Commits

Author SHA1 Message Date
dave griffiths 004d9970c8 Merge branch 'tooltip-fixup' into 'main'
fix some tooltips in the GUI

See merge request then-try-this/samplebrain!13
2022-10-05 11:32:45 +00:00
dave griffiths 0a309ef8cd Merge branch 'theme' into 'main'
set dark foreground when using light background

See merge request then-try-this/samplebrain!14
2022-10-05 11:31:29 +00:00
Claude Heiland-Allen 28a8bd31f8 set dark foreground when using light background
fixes hard-to-read light text on light background
when using a dark system theme enabled for QT apps
2022-10-05 11:06:18 +01:00
Claude Heiland-Allen ad2a70a8d6 fix some tooltips in the GUI
- some were incorrect, now corrected
- some spinboxes were missing, now added (same as slider)
- still not all widgets have tooltips (notably blocksize + overlap)
2022-10-04 12:44:52 +01:00
2 changed files with 30 additions and 6 deletions

View File

@ -33,7 +33,7 @@ sound_items::sound_item &sound_items::add(QVBoxLayout *container, const string &
sound_item si; sound_item si;
si.m_filename = name; si.m_filename = name;
si.m_id = m_current_sound_id++; si.m_id = m_current_sound_id++;
QString style("background-color:lightgrey;"); QString style("color:black;background-color:lightgrey;");
si.m_container = new QHBoxLayout(); si.m_container = new QHBoxLayout();
si.m_container->setSpacing(10); si.m_container->setSpacing(10);
@ -89,8 +89,8 @@ void sound_items::clear() {
void sound_items::recolour() { void sound_items::recolour() {
u32 c=0; u32 c=0;
for (auto &si:m_sound_items) { for (auto &si:m_sound_items) {
QString style("background-color:lightblue;"); QString style("color:black;background-color:lightblue;");
if (c%2==0) style="background-color:pink;"; if (c%2==0) style="color:black;background-color:pink;";
si.m_enable->setStyleSheet(style); si.m_enable->setStyleSheet(style);
si.m_del->setStyleSheet(style); si.m_del->setStyleSheet(style);
si.m_label->setStyleSheet(style); si.m_label->setStyleSheet(style);
@ -101,7 +101,7 @@ void sound_items::recolour() {
void sound_items::change_colour(const std::string &name, const std::string &colour) { void sound_items::change_colour(const std::string &name, const std::string &colour) {
for (auto &si:m_sound_items) { for (auto &si:m_sound_items) {
if (si.m_filename==name) { if (si.m_filename==name) {
QString style("background-color:"+QString::fromStdString(colour)+";"); QString style("color:black;background-color:"+QString::fromStdString(colour)+";");
si.m_enable->setStyleSheet(style); si.m_enable->setStyleSheet(style);
si.m_del->setStyleSheet(style); si.m_del->setStyleSheet(style);
si.m_label->setStyleSheet(style); si.m_label->setStyleSheet(style);

View File

@ -96,6 +96,9 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip">
<string>plain fft match vs mfcc values </string>
</property>
<property name="maximum"> <property name="maximum">
<double>1.000000000000000</double> <double>1.000000000000000</double>
</property> </property>
@ -156,6 +159,9 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip">
<string>match original or normalised blocks</string>
</property>
<property name="maximum"> <property name="maximum">
<double>1.000000000000000</double> <double>1.000000000000000</double>
</property> </property>
@ -298,6 +304,9 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip">
<string>use new blocks rather than similar ones</string>
</property>
<property name="maximum"> <property name="maximum">
<double>1.000000000000000</double> <double>1.000000000000000</double>
</property> </property>
@ -361,6 +370,9 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip">
<string>how long it takes for the novelty to wear off</string>
</property>
<property name="maximum"> <property name="maximum">
<double>1.000000000000000</double> <double>1.000000000000000</double>
</property> </property>
@ -424,6 +436,9 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip">
<string>likelihood of playing the next block rather than the closest</string>
</property>
<property name="maximum"> <property name="maximum">
<double>1.000000000000000</double> <double>1.000000000000000</double>
</property> </property>
@ -491,7 +506,7 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>how many connections to search (ordered in closeness)</string> <string>repeat search (set novelty to 0 for dodgy jungle timessssstretch)</string>
</property> </property>
<property name="minimum"> <property name="minimum">
<number>1</number> <number>1</number>
@ -666,7 +681,7 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>how many connections to search (ordered in closeness)</string> <string>block difference higher than this causes a new search, skipping the target</string>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>10000</number> <number>10000</number>
@ -944,6 +959,9 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip">
<string>amount to match the frequency</string>
</property>
<property name="maximum"> <property name="maximum">
<double>1.000000000000000</double> <double>1.000000000000000</double>
</property> </property>
@ -1001,6 +1019,9 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip">
<string>mix in the normalised blocks</string>
</property>
<property name="maximum"> <property name="maximum">
<double>1.000000000000000</double> <double>1.000000000000000</double>
</property> </property>
@ -1061,6 +1082,9 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip">
<string>mix in the original blocks</string>
</property>
<property name="maximum"> <property name="maximum">
<double>1.000000000000000</double> <double>1.000000000000000</double>
</property> </property>