Skip to content
Permalink
Browse files

version number in all screens

  • Loading branch information...
Manuel-777 committed Aug 4, 2019
1 parent 740de82 commit 2b880d70c278c64f0923b263b9c1fc74ba17b105
Showing with 29 additions and 3 deletions.
  1. +21 −0 window_main/index.css
  2. +2 −3 window_main/index.html
  3. +6 −0 window_main/renderer.js
@@ -14,6 +14,27 @@ relative-time, local-time {
color: var(--color-light-50);
}

.version_number {
width: 80px;
text-align: center;
font-family: var(--main-font-name);
color: var(--color-light-75);
line-height: 24px;
font-size: 14px;
height: 24px;
position: absolute;
left: calc(100% - 82px);
top: calc(100% - 26px);
background-color: var(--color-back);
z-index: 100;
border-radius: 4px 0 0 0;
cursor: pointer;
}

.version_number {
text-decoration: underline;
}

.top_status, .top_status_span {
width: 24px;
height: 24px;
@@ -60,7 +60,6 @@

<div class="loading_bar_main main_loading" style="display: none"><div class="loading_color loading_w"></div><div class="loading_color loading_u"></div><div class="loading_color loading_b"></div><div class="loading_color loading_r"></div><div class="loading_color loading_g"></div></div>


<div class="popup"></div>
<div class="wrapper">
<div class="loading_bar init_loading"><div class="loading_color loading_w"></div><div class="loading_color loading_u"></div><div class="loading_color loading_b"></div><div class="loading_color loading_r"></div><div class="loading_color loading_g"></div></div>
@@ -78,8 +77,6 @@
</div>
</div>



<div class="main_hover_container">
<div class="hover_card_quantity" style="opacity: 0;"></div>
<img class="main_hover" style="opacity: 0;">
@@ -118,6 +115,8 @@
--<div class="message_small">Did you <a class="forgot_link">forget your password?</a></div>
</form>
</div>

<div class="version_number"></div>
</div>
</body>
</html>
@@ -574,6 +574,12 @@ function loginToggle(toggle) {
}

ready(function() {
$$(".version_number")[0].innerHTML = `v${remote.app.getVersion()}`;

$$(".version_number")[0].addEventListener("click", function() {
force_open_settings(SETTINGS_ABOUT);
});

$$(".signup_link")[0].addEventListener("click", function() {
shell.openExternal("https://mtgatool.com/signup/");
});

0 comments on commit 2b880d7

Please sign in to comment.
You can’t perform that action at this time.