Skip to content

Commit

Permalink
Use a white svg icon for the Solidus menu icon
Browse files Browse the repository at this point in the history
Fits better into the new Alchemy 4.1 admin colors.
  • Loading branch information
tvdeyen committed Aug 9, 2019
1 parent 3d6151c commit b2d2266
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Binary file not shown.
4 changes: 3 additions & 1 deletion config/initializers/alchemy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
controller: 'spree/admin/orders',
action: 'index',
name: 'Store',
image: 'alchemy/solidus/alchemy_module_icon.png',
inline_image: '<svg version="1.1" width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" style="vertical-align: middle">
<path d="M 6.687 21.839 L 17.314 21.839 L 17.314 2.162 L 6.687 2.162 Z M 19.476 24 L 4.525 24 L 4.525 0 L 19.476 0 Z M 13.89 17 C 13.307 16.662 13.078 16.287 13.05 15.313 L 13.05 8.574 C 13.05 6.554 12.05 5.814 9.911 4.794 L 8.99 6.434 L 10.111 7.074 C 10.693 7.412 10.923 7.786 10.951 8.761 L 10.951 15.5 C 10.951 17.52 11.951 18.26 14.09 19.279 L 15.01 17.64 Z" fill="currentColor"/>
</svg>',
data: { turbolinks: false },
sub_navigation: [
{
Expand Down
6 changes: 0 additions & 6 deletions lib/alchemy/solidus/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ module Solidus
class Engine < ::Rails::Engine
engine_name 'alchemy_solidus'

initializer 'alchemy_solidus.assets' do |app|
app.config.assets.precompile += [
'alchemy/solidus/alchemy_module_icon.png'
]
end

config.to_prepare do
Alchemy.register_ability ::Spree::Ability
::Spree::Ability.register_ability ::Alchemy::Permissions
Expand Down

0 comments on commit b2d2266

Please sign in to comment.