diff --git a/src/chroma_window.cpp b/src/chroma_window.cpp
index f9e0345..a32b8f5 100644
--- a/src/chroma_window.cpp
+++ b/src/chroma_window.cpp
@@ -3,7 +3,7 @@
ChromaWindow::ChromaWindow(QWidget *parent) : QDialog(parent) {
- setFixedSize(800, 600);
+ setFixedSize(400, 240);
setWindowTitle(tr("Chroma Key"));
setWindowIcon(QPixmap(":/images/icon.png"));
createControls();
@@ -16,7 +16,25 @@ void ChromaWindow::createControls() {
button_select_tolerance = new QRadioButton("Select Color Tolerance", this);
button_select_tolerance->setGeometry(75+120+10, 25, 150, 20);
connect(button_select_tolerance, SIGNAL(clicked()), this, SLOT(openColorSelectTolerance()));
- // create 6 text input boxes.
+ low_b = new QLineEdit("0", this);
+ low_g = new QLineEdit("0", this);
+ low_r = new QLineEdit("0", this);
+ high_b = new QLineEdit("0", this);
+ high_g = new QLineEdit("0", this);
+ high_r = new QLineEdit("0", this);
+ low_b->setGeometry(95, 65, 50, 20);
+ low_g->setGeometry(170, 65, 50, 20);
+ low_r->setGeometry(245, 65, 50, 20);
+ high_b->setGeometry(95, 90, 50, 20);
+ high_g->setGeometry(170, 90, 50, 20);
+ high_r->setGeometry(245, 90, 50, 20);
+ QLabel *string_low, *string_high;
+ string_low = new QLabel("Low BGR: ", this);
+ string_high = new QLabel("High BGR: ", this);
+ string_low->setGeometry(15, 65, 75, 20);
+ string_high->setGeometry(15, 90, 75, 20);
+
+ button_select_range->setChecked(true);
}
diff --git a/src/chroma_window.h b/src/chroma_window.h
index 6e760a4..9c25c66 100644
--- a/src/chroma_window.h
+++ b/src/chroma_window.h
@@ -14,7 +14,7 @@ public slots:
private:
void createControls();
QRadioButton *button_select_range, *button_select_tolerance;
- QLabel *color_select_low, *color_select_high;
+ QLineEdit *low_b, *low_g, *low_r, *high_b, *high_g, *high_r;
};