Skip to content

Commit

Permalink
Give auto button a background (#270)
Browse files Browse the repository at this point in the history
* Try using a PNG for auto button

* Stretch image to bounds
  • Loading branch information
cassidyjames committed Apr 29, 2021
1 parent 9cc8672 commit c94f475
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Binary file added data/auto.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions data/icons.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<file alias="64x64/apps/application-default-icon-symbolic.svg" compressed="true" preprocess="xml-stripblanks">application-default-icon/64-symbolic.svg</file>
<file alias="appearance-default.svg" compressed="true" preprocess="xml-stripblanks">appearance-default.svg</file>
<file alias="appearance-dark.svg" compressed="true" preprocess="xml-stripblanks">appearance-dark.svg</file>
<file alias="auto.png" compressed="true">auto.png</file>
<file alias="plug.css" compressed="true">plug.css</file>
</gresource>
</gresources>
9 changes: 8 additions & 1 deletion data/plug.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 elementary LLC. (https://elementary.io)
* Copyright 2018–2021 elementary, Inc. (https://elementary.io)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
Expand Down Expand Up @@ -80,3 +80,10 @@ radiobutton .card {
alpha (@accent_color_500, 0.1)
);
}

.color-button.auto radio {
background-image: url("auto.png");
background-position: -1px -1px;
background-repeat: no-repeat;
background-size: calc(100% + 2px);
}

0 comments on commit c94f475

Please sign in to comment.