|
@@ -1226,10 +1226,7 @@
|
|
alert(data.error);
|
|
alert(data.error);
|
|
}else{
|
|
}else{
|
|
userInfo = data;
|
|
userInfo = data;
|
|
- if (data.IsAdmin == false){
|
|
|
|
- //Hide the power buttons
|
|
|
|
- $(".hardware").hide();
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
|
|
//Update the user tag
|
|
//Update the user tag
|
|
$("#username").text(userInfo.Username);
|
|
$("#username").text(userInfo.Username);
|
|
@@ -1238,6 +1235,14 @@
|
|
if (data.UserIcon !== ""){
|
|
if (data.UserIcon !== ""){
|
|
$(".usericon").attr("src",data.UserIcon);
|
|
$(".usericon").attr("src",data.UserIcon);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (data.IsAdmin == false){
|
|
|
|
+ //Hide the power buttons
|
|
|
|
+ $(".hardware").hide();
|
|
|
|
+ }else{
|
|
|
|
+ //User is admin. Add admin icon
|
|
|
|
+ $("#username").append(` <i style="color: #52c9ff" class="protect icon themed text"></i>`);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -6261,6 +6266,7 @@
|
|
$("#listMenu").find(".searchBar").css("border-bottom", "2px solid " + newThemeColor);
|
|
$("#listMenu").find(".searchBar").css("border-bottom", "2px solid " + newThemeColor);
|
|
$("#volumebar").css("background-color", newThemeColor);
|
|
$("#volumebar").css("background-color", newThemeColor);
|
|
$("#brightnessbar").css("background-color", newThemeColor);
|
|
$("#brightnessbar").css("background-color", newThemeColor);
|
|
|
|
+ $(".themed.text").css("color", newThemeColor);
|
|
|
|
|
|
//Connection lost notification css
|
|
//Connection lost notification css
|
|
$("#connectionLost").find(".ts.card").css("background-color", hexToRgbA(newThemeColor, 0.5));
|
|
$("#connectionLost").find(".ts.card").css("background-color", hexToRgbA(newThemeColor, 0.5));
|