-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This switches the rendering of the layout from using HTML and CSS to using a canvas (technically it's two). This not only should improve the performance but also brings the rendering in line with our native renderers, enabling new features such as vertical resizing and horizontal layouts. This also removes a lot of code specific to the HTML rendering and thus greatly simplifies the codebase. There is one slight regression in that the layout editor doesn't allow clicking and dragging the individual components directly on the layout anymore. This is however something we can explore directly in `livesplit-core` in the future, so other frontends can benefit from it as well.
- Loading branch information
Showing
37 changed files
with
193 additions
and
1,880 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule livesplit-core
updated
43 files
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,42 @@ | ||
@import 'variables'; | ||
@import 'Font'; | ||
|
||
.layout { | ||
font-family: "fira", sans-serif; | ||
font-size: $default-font-size; | ||
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5); | ||
position: relative; | ||
-webkit-touch-callout: none; | ||
-webkit-user-select: none; | ||
user-select: none; | ||
|
||
.resizable-layout { | ||
position: absolute; | ||
z-index: 2; | ||
height: 100% !important; | ||
top: 0; | ||
width: inherit; | ||
height: inherit; | ||
|
||
.react-resizable { | ||
width: 0 !important; | ||
height: 0 !important; | ||
} | ||
|
||
.resizable-handle { | ||
.resizable-handle-east { | ||
cursor: e-resize; | ||
bottom: -4px; | ||
right: -4px; | ||
right: -10px; | ||
bottom: 10px; | ||
top: 0; | ||
position: absolute; | ||
width: 20px; | ||
} | ||
|
||
.resizable-handle-south { | ||
cursor: s-resize; | ||
bottom: -10px; | ||
left: 0; | ||
right: 10px; | ||
position: absolute; | ||
height: 20px; | ||
} | ||
|
||
.resizable-handle-south-east { | ||
cursor: se-resize; | ||
bottom: -10px; | ||
right: -10px; | ||
position: absolute; | ||
width: 20px; | ||
height: 100%; | ||
height: 20px; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.