Skip to content

Commit

Permalink
add 0.65em size
Browse files Browse the repository at this point in the history
  • Loading branch information
biji committed Jul 19, 2017
1 parent 87a9d9c commit 0b47040
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 10 deletions.
6 changes: 4 additions & 2 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function changeMode(widget, event) {
}
else if (event.get_button() == 2) { // change font
fontmode++;
if (fontmode > 3) {
if (fontmode > 4) {
fontmode=0;
}
settings.set_int('fontmode', fontmode);
Expand Down Expand Up @@ -136,8 +136,10 @@ function parseStat() {
let speed = (count - lastCount) / refreshTime;
let speedUp = (countUp - lastCountUp) / refreshTime;

// TEST
// lastSpeed = 199899999;
// speed= 1998999999;
// speedUp= 998999999;
// speedUp= 99899999;

let dot = "";
if (speed > lastSpeed) {
Expand Down
Binary file modified schemas/gschemas.compiled
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<default>0</default>
</key>
<key name="fontmode" type="i">
<range min="0" max="3" />
<range min="0" max="4" />
<default>0</default>
</key>
</schema>
Expand Down
30 changes: 23 additions & 7 deletions stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,43 +19,59 @@
text-align: right;
margin-left: 1px;
margin-right: 2px;
font-size: .8em;
font-size: .65em;
}

.simplenetspeed-label-w-1 {
width: 120px;
text-align: right;
margin-left: 1px;
margin-right: 1px;
font-size: .8em;
font-size: .65em;
}

.simplenetspeed-label-2 {
width: 70px;
text-align: right;
margin-left: 1px;
margin-right: 2px;
font-size: .9em;
font-size: .8em;
}

.simplenetspeed-label-w-2 {
width: 120px;
text-align: right;
margin-left: 1px;
margin-right: 1px;
font-size: .9em;
font-size: .8em;
}

.simplenetspeed-label-3 {
width: 80px;
width: 70px;
text-align: right;
margin-left: 1px;
margin-right: 2px;
font-size: 1.1em;
font-size: .9em;
}

.simplenetspeed-label-w-3 {
width: 135px;
width: 120px;
text-align: right;
margin-left: 1px;
margin-right: 1px;
font-size: .9em;
}

.simplenetspeed-label-4 {
width: 85px;
text-align: right;
margin-left: 1px;
margin-right: 2px;
font-size: 1.1em;
}

.simplenetspeed-label-w-4 {
width: 160px;
text-align: right;
margin-left: 1px;
margin-right: 1px;
Expand Down

1 comment on commit 0b47040

@biji
Copy link
Owner Author

@biji biji commented on 0b47040 Jul 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#8

Please sign in to comment.