Selaa lähdekoodia

add ms and fps

tags/2.12.0
Caven Chen 3 vuotta sitten
vanhempi
commit
c0568cb995
2 muutettua tiedostoa jossa 24 lisäystä ja 9 poistoa
  1. 23
    8
      modules/themes/locationbar.scss
  2. 1
    1
      modules/widget/type/LocationBar.js

+ 23
- 8
modules/themes/locationbar.scss Näytä tiedosto

border-radius: 2px; border-radius: 2px;
user-select: none; user-select: none;
display: flex; display: flex;
span {
margin: 0 8px;
display: inline-block;
.mouse-bar, .camera-bar ,.ms-bar,.fps-bar{
display: flex;
span {
margin: 0 8px;
}

} }
.mouse-bar{
span{
min-width: 100px;

.mouse-bar {
span {
min-width: 140px;
}
span:nth-of-type(3) {
min-width: 120px;
} }
} }


.ms-bar,.fps-bar{
.camera-bar {
span{ span{
min-width: 70px;
min-width: 90px;
}
span:nth-of-type(2) {
min-width: 145px;
} }
} }


.ms-bar,.fps-bar {
span {
min-width: 70px;
}
}
} }

+ 1
- 1
modules/widget/type/LocationBar.js Näytä tiedosto

this._mouseEl = DomUtil.create('div', 'mouse-bar', this._wrapper) this._mouseEl = DomUtil.create('div', 'mouse-bar', this._wrapper)
this._cameraEl = DomUtil.create('div', 'camera-bar', this._wrapper) this._cameraEl = DomUtil.create('div', 'camera-bar', this._wrapper)
this._msEl = DomUtil.create('div', 'ms-bar', this._wrapper) this._msEl = DomUtil.create('div', 'ms-bar', this._wrapper)
this._fpsEl = DomUtil.create('div', 'fbs-bar', this._wrapper)
this._fpsEl = DomUtil.create('div', 'fps-bar', this._wrapper)
this._ready = true this._ready = true
} }



Loading…
Peruuta
Tallenna