Skip to content

Commit

Permalink
Updated icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisleung committed Dec 7, 2007
1 parent a73d8a9 commit b95afbc
Show file tree
Hide file tree
Showing 12 changed files with 393 additions and 172 deletions.
13 changes: 6 additions & 7 deletions src/powerreader/ConfigUI.form
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@
<Component id="jLabel4" alignment="0" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="m_slider_textDepth" alignment="1" pref="182" max="32767" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0">
<Group type="103" alignment="1" groupAlignment="1" max="-2" attributes="0">
<Component id="m_checkBox_mouseWheel" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="m_combo_rightClick" alignment="1" pref="182" max="32767" attributes="1"/>
</Group>
<Component id="m_slider_lineWidth" alignment="1" min="0" pref="0" max="32767" attributes="1"/>
<Component id="m_slider_textDepth" alignment="1" pref="182" max="32767" attributes="0"/>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
Expand Down Expand Up @@ -122,26 +122,26 @@
<EmptySpace min="-2" pref="14" max="-2" attributes="0"/>
<Component id="m_checkBox_mouseWheel" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="m_label_rightClick1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel1" min="-2" pref="14" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel2" min="-2" pref="14" max="-2" attributes="0"/>
</Group>
<Component id="m_slider_lineWidth" min="-2" max="-2" attributes="1"/>
<Component id="m_slider_lineWidth" alignment="0" min="-2" max="-2" attributes="1"/>
</Group>
<EmptySpace min="-2" pref="24" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="m_slider_textDepth" min="-2" max="-2" attributes="0"/>
<Group type="102" attributes="0">
<Component id="jLabel3" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel4" min="-2" pref="14" max="-2" attributes="0"/>
</Group>
<Component id="m_slider_textDepth" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace pref="16" max="32767" attributes="0"/>
<EmptySpace pref="26" max="32767" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="m_okButton" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="m_cancelButton" alignment="3" min="-2" max="-2" attributes="0"/>
Expand Down Expand Up @@ -355,7 +355,6 @@
<Property name="minimum" type="int" value="1"/>
<Property name="paintLabels" type="boolean" value="true"/>
<Property name="paintTicks" type="boolean" value="true"/>
<Property name="snapToTicks" type="boolean" value="true"/>
<Property name="value" type="int" value="1"/>
</Properties>
<Events>
Expand Down
21 changes: 10 additions & 11 deletions src/powerreader/ConfigUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
m_slider_textDepth.setMinimum(1);
m_slider_textDepth.setPaintLabels(true);
m_slider_textDepth.setPaintTicks(true);
m_slider_textDepth.setSnapToTicks(true);
m_slider_textDepth.setValue(1);
m_slider_textDepth.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
Expand Down Expand Up @@ -188,12 +187,12 @@ public void stateChanged(javax.swing.event.ChangeEvent evt) {
.addComponent(jLabel3)
.addComponent(jLabel4))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(m_slider_textDepth, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(m_checkBox_mouseWheel, javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(m_combo_rightClick, 0, 182, Short.MAX_VALUE))
.addComponent(m_slider_lineWidth, javax.swing.GroupLayout.Alignment.TRAILING, 0, 0, Short.MAX_VALUE)))
.addComponent(m_slider_lineWidth, 0, 0, Short.MAX_VALUE)
.addComponent(m_slider_textDepth, javax.swing.GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE)))
.addGroup(layout.createSequentialGroup()
.addComponent(m_okButton, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
Expand Down Expand Up @@ -234,7 +233,7 @@ public void stateChanged(javax.swing.event.ChangeEvent evt) {
.addGap(14, 14, 14)
.addComponent(m_checkBox_mouseWheel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(m_label_rightClick1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
Expand All @@ -244,12 +243,12 @@ public void stateChanged(javax.swing.event.ChangeEvent evt) {
.addComponent(m_slider_lineWidth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(24, 24, 24)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(m_slider_textDepth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(m_slider_textDepth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(m_okButton)
.addComponent(m_cancelButton))
Expand All @@ -259,8 +258,8 @@ public void stateChanged(javax.swing.event.ChangeEvent evt) {
}// </editor-fold>//GEN-END:initComponents

private void m_slider_textDepthStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_m_slider_textDepthStateChanged
ConfigurationManager.TEXT_DEPTH = m_slider_textDepth.getValue() / 10.0f;
ConfigurationManager.currentRoot.color(false);
ConfigurationManager.TEXT_DEPTH = m_slider_textDepth.getValue() / 2f;
ConfigurationManager.currentRoot.color(false);
}//GEN-LAST:event_m_slider_textDepthStateChanged

private void m_okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_m_okButtonActionPerformed
Expand Down
Loading

0 comments on commit b95afbc

Please sign in to comment.