Skip to content

Commit

Permalink
Add header image to help with visual clarity
Browse files Browse the repository at this point in the history
This PR adds a header image above the search bar to help with visual clarity of the palette.
Previously, opening the palette above dark-ish backgrounds made it hard to easily spot its position.
The addition of the brighter header image (that is directly attached to the search field) helps with that.
  • Loading branch information
flbraun committed Mar 16, 2024
1 parent 644fe32 commit 19b102d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Binary file added assets/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ body {
width: 25%;
}

#header {
/* centers the header image horizontally */
display: block;
margin-left: auto;
margin-right: auto;
}

#search {
border: 8px solid var(--color-primary);
border-top-left-radius: var(--radius);
Expand Down
3 changes: 3 additions & 0 deletions src/renderer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@
<body>
<div class="spacer"></div>
<div id="palette">
<img id="header" src="../../assets/header.png" />
<input id="search" type="text" placeholder="Still sane, exile?" autocomplete="false" spellcheck="false" autofocus>
<div id="resultlist"></div>
</div>
<div class="spacer"></div>
<div class="spacer"></div>
<div class="spacer"></div>
<div class="spacer"></div>

<script src="./palette.js"></script>
</body>
Expand Down

0 comments on commit 19b102d

Please sign in to comment.