-
Notifications
You must be signed in to change notification settings - Fork 3.3k
UI Polish #6318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
UI Polish #6318
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0db4280
enable diff syntax highlighting on diff tool output file
sestinj cbae30a
refactor gradient border to its own file
sestinj 7addf2c
nicer hover effects on input boxes
sestinj 4604369
improve styling for links
sestinj 1ce3060
update defaultBorderRadius and use rem instead of px
sestinj 5df9aa2
increase lump x margin
sestinj 0d26551
fix code bg
sestinj 4d20c8a
add textCodeBlcokBackground to GetTheme.kt
sestinj ee278f4
back to "Diff"
sestinj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
globs: "gui/**/*.tsx" | ||
--- | ||
|
||
You should try to use the `rem` CSS unit whenever possible for scalability instead of `px`. |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import styled, { keyframes } from "styled-components"; | ||
|
||
const gradient = keyframes` | ||
0% { | ||
background-position: 0px 0; | ||
} | ||
100% { | ||
background-position: 100em 0; | ||
} | ||
`; | ||
|
||
export const GradientBorder = styled.div<{ | ||
borderRadius?: string; | ||
borderColor?: string; | ||
loading: 0 | 1; | ||
}>` | ||
border-radius: ${(props) => props.borderRadius || "0"}; | ||
padding: 1px; | ||
background: ${(props) => | ||
props.borderColor | ||
? props.borderColor | ||
: `repeating-linear-gradient( | ||
101.79deg, | ||
#1BBE84 0%, | ||
#331BBE 16%, | ||
#BE1B55 33%, | ||
#A6BE1B 55%, | ||
#BE1B55 67%, | ||
#331BBE 85%, | ||
#1BBE84 99% | ||
)`}; | ||
animation: ${(props) => (props.loading ? gradient : "")} 6s linear infinite; | ||
background-size: 200% 200%; | ||
width: 100%; | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
`; |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.