Skip to content
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

Use a white svg icon for the Solidus menu icon #42

Merged
merged 2 commits into from
Aug 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ task :test_setup do
export RAILS_ENV=test && \
bin/rake db:environment:set db:drop && \
bin/rails g spree:install --force --quiet --auto-accept --no-seed --no-sample && \
bin/rails g alchemy:solidus:install --auto-accept
bin/rails g alchemy:solidus:install --auto-accept --force
SETUP
exit($?.exitstatus) unless $?.success?
end
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ Alchemy::Modules.register_module({
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