fix themepicker bg img
parent
61713564b7
commit
3db4542f2b
|
@ -13,7 +13,7 @@
|
|||
<a class="d2 button" data-is3d="false">2D</a>
|
||||
<a class="d3 button" data-is3d="true">3D</a>
|
||||
</div>
|
||||
<input data-href="@routes.Pref.set("bgImg")" type="text" class="background_image" value="@ctx.pref.bgImgOrDefault" />
|
||||
<input data-href="@routes.Pref.set("bgImg")" type="text" class="background_image" value="@ctx.bgImg" />
|
||||
<div class="zoom_control">
|
||||
<i data-icon="<"></i><div class="slider"></div>
|
||||
</div>
|
||||
|
|
|
@ -50,9 +50,9 @@ sealed trait Context extends lila.user.UserContextWrapper {
|
|||
|
||||
lazy val currentBg = ctxPref("bg") | "light"
|
||||
|
||||
def transpBgImg = currentBg == "transp" option {
|
||||
ctxPref("bgImg") | Pref.defaultBgImg
|
||||
}
|
||||
def transpBgImg = currentBg == "transp" option bgImg
|
||||
|
||||
def bgImg = ctxPref("bgImg") | Pref.defaultBgImg
|
||||
|
||||
def mobileApiVersion = Mobile.Api requestVersion req
|
||||
|
||||
|
|
Loading…
Reference in New Issue