Mercurial > hg > svgui
comparison view/ViewManager.cpp @ 343:1b6879d03cb6
* Fix #1848191 double clicking on time instants causes move
Also fix tendency for navigate mode to continue navigating even
after button release
author | Chris Cannam |
---|---|
date | Tue, 18 Dec 2007 10:35:55 +0000 |
parents | e74b56f07c73 |
children | a9dfa2d6d5ac |
comparison
equal
deleted
inserted
replaced
342:a904364dfb6e | 343:1b6879d03cb6 |
---|---|
55 m_zoomWheelsEnabled = | 55 m_zoomWheelsEnabled = |
56 settings.value("zoom-wheels-enabled", m_zoomWheelsEnabled).toBool(); | 56 settings.value("zoom-wheels-enabled", m_zoomWheelsEnabled).toBool(); |
57 settings.endGroup(); | 57 settings.endGroup(); |
58 | 58 |
59 if (getGlobalDarkBackground()) { | 59 if (getGlobalDarkBackground()) { |
60 | 60 /* |
61 std::cerr << "dark palette:" << std::endl; | 61 std::cerr << "dark palette:" << std::endl; |
62 std::cerr << "window = " << QApplication::palette().color(QPalette::Window).name().toStdString() << std::endl; | 62 std::cerr << "window = " << QApplication::palette().color(QPalette::Window).name().toStdString() << std::endl; |
63 std::cerr << "windowtext = " << QApplication::palette().color(QPalette::WindowText).name().toStdString() << std::endl; | 63 std::cerr << "windowtext = " << QApplication::palette().color(QPalette::WindowText).name().toStdString() << std::endl; |
64 std::cerr << "base = " << QApplication::palette().color(QPalette::Base).name().toStdString() << std::endl; | 64 std::cerr << "base = " << QApplication::palette().color(QPalette::Base).name().toStdString() << std::endl; |
65 std::cerr << "alternatebase = " << QApplication::palette().color(QPalette::AlternateBase).name().toStdString() << std::endl; | 65 std::cerr << "alternatebase = " << QApplication::palette().color(QPalette::AlternateBase).name().toStdString() << std::endl; |
68 std::cerr << "buttontext = " << QApplication::palette().color(QPalette::ButtonText).name().toStdString() << std::endl; | 68 std::cerr << "buttontext = " << QApplication::palette().color(QPalette::ButtonText).name().toStdString() << std::endl; |
69 std::cerr << "brighttext = " << QApplication::palette().color(QPalette::BrightText).name().toStdString() << std::endl; | 69 std::cerr << "brighttext = " << QApplication::palette().color(QPalette::BrightText).name().toStdString() << std::endl; |
70 std::cerr << "light = " << QApplication::palette().color(QPalette::Light).name().toStdString() << std::endl; | 70 std::cerr << "light = " << QApplication::palette().color(QPalette::Light).name().toStdString() << std::endl; |
71 std::cerr << "dark = " << QApplication::palette().color(QPalette::Dark).name().toStdString() << std::endl; | 71 std::cerr << "dark = " << QApplication::palette().color(QPalette::Dark).name().toStdString() << std::endl; |
72 std::cerr << "mid = " << QApplication::palette().color(QPalette::Mid).name().toStdString() << std::endl; | 72 std::cerr << "mid = " << QApplication::palette().color(QPalette::Mid).name().toStdString() << std::endl; |
73 | 73 */ |
74 m_lightPalette = QPalette(QColor("#000000"), // WindowText | 74 m_lightPalette = QPalette(QColor("#000000"), // WindowText |
75 QColor("#dddfe4"), // Button | 75 QColor("#dddfe4"), // Button |
76 QColor("#ffffff"), // Light | 76 QColor("#ffffff"), // Light |
77 QColor("#555555"), // Dark | 77 QColor("#555555"), // Dark |
78 QColor("#c7c7c7"), // Mid | 78 QColor("#c7c7c7"), // Mid |
81 QColor("#ffffff"), // Base | 81 QColor("#ffffff"), // Base |
82 QColor("#efefef")); // Window | 82 QColor("#efefef")); // Window |
83 | 83 |
84 | 84 |
85 } else { | 85 } else { |
86 /* | |
86 std::cerr << "light palette:" << std::endl; | 87 std::cerr << "light palette:" << std::endl; |
87 std::cerr << "window = " << QApplication::palette().color(QPalette::Window).name().toStdString() << std::endl; | 88 std::cerr << "window = " << QApplication::palette().color(QPalette::Window).name().toStdString() << std::endl; |
88 std::cerr << "windowtext = " << QApplication::palette().color(QPalette::WindowText).name().toStdString() << std::endl; | 89 std::cerr << "windowtext = " << QApplication::palette().color(QPalette::WindowText).name().toStdString() << std::endl; |
89 std::cerr << "base = " << QApplication::palette().color(QPalette::Base).name().toStdString() << std::endl; | 90 std::cerr << "base = " << QApplication::palette().color(QPalette::Base).name().toStdString() << std::endl; |
90 std::cerr << "alternatebase = " << QApplication::palette().color(QPalette::AlternateBase).name().toStdString() << std::endl; | 91 std::cerr << "alternatebase = " << QApplication::palette().color(QPalette::AlternateBase).name().toStdString() << std::endl; |
93 std::cerr << "buttontext = " << QApplication::palette().color(QPalette::ButtonText).name().toStdString() << std::endl; | 94 std::cerr << "buttontext = " << QApplication::palette().color(QPalette::ButtonText).name().toStdString() << std::endl; |
94 std::cerr << "brighttext = " << QApplication::palette().color(QPalette::BrightText).name().toStdString() << std::endl; | 95 std::cerr << "brighttext = " << QApplication::palette().color(QPalette::BrightText).name().toStdString() << std::endl; |
95 std::cerr << "light = " << QApplication::palette().color(QPalette::Light).name().toStdString() << std::endl; | 96 std::cerr << "light = " << QApplication::palette().color(QPalette::Light).name().toStdString() << std::endl; |
96 std::cerr << "dark = " << QApplication::palette().color(QPalette::Dark).name().toStdString() << std::endl; | 97 std::cerr << "dark = " << QApplication::palette().color(QPalette::Dark).name().toStdString() << std::endl; |
97 std::cerr << "mid = " << QApplication::palette().color(QPalette::Mid).name().toStdString() << std::endl; | 98 std::cerr << "mid = " << QApplication::palette().color(QPalette::Mid).name().toStdString() << std::endl; |
98 | 99 */ |
99 m_darkPalette = QPalette(QColor("#ffffff"), // WindowText | 100 m_darkPalette = QPalette(QColor("#ffffff"), // WindowText |
100 QColor("#3e3e3e"), // Button | 101 QColor("#3e3e3e"), // Button |
101 QColor("#808080"), // Light | 102 QColor("#808080"), // Light |
102 QColor("#1e1e1e"), // Dark | 103 QColor("#1e1e1e"), // Dark |
103 QColor("#404040"), // Mid | 104 QColor("#404040"), // Mid |