Kouhei Sutou
null+****@clear*****
Sun Jun 5 17:22:01 JST 2016
Kouhei Sutou 2016-06-05 17:22:01 +0900 (Sun, 05 Jun 2016) New Revision: 24978e8d46abef9fc39e1ee827765ea82761ca97 https://github.com/groonga/rabbit-theme-groonga/commit/24978e8d46abef9fc39e1ee827765ea82761ca97 Message: Support per slide product change Modified files: Rakefile theme.rb Modified: Rakefile (+2 -1) =================================================================== --- Rakefile 2015-05-24 15:56:56 +0900 (6967d21) +++ Rakefile 2016-06-05 17:22:01 +0900 (22c4769) @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Groonga Project +# Copyright (C) 2013-2016 Groonga Project # # License: CC BY 3.0 @@ -6,6 +6,7 @@ require "rabbit/task/theme" spec = nil Rabbit::Task::Theme.new do |task| + task.required_rabbit_version = ">= 2.2.0" spec = task.spec end Modified: theme.rb (+12 -1) =================================================================== --- theme.rb 2015-05-24 15:56:56 +0900 (eee4f3b) +++ theme.rb 2016-06-05 17:22:01 +0900 (0db4aa0) @@ -96,7 +96,10 @@ include_theme("default") @icon_images = @groonga_icon_images include_theme("icon") - �� groonga_slide_logo_image ||= "#{@groonga_product}-icon-full-size.svg" + �� groonga_slide_logo_image ||= lambda do |slide| + product = slide["groonga-product"] || @groonga_product + "#{product}-icon-full-size.svg" +end @slide_logo_image = @groonga_slide_logo_image @slide_logo_position = Proc.new do |slide, canvas, loader| x = slide.margin_left @@ -191,6 +194,14 @@ match(Slide, Body) do |bodies| end end +match("**", Emphasis) do |texts| + texts.each do |text| + product = text.slide["groonga-product"] || @groonga_product + emphasis_color = colors[product][:emphasis] + prop_set("foreground", emphasis_color) + end +end + @lightning_talk_proc_name = "lightning-groonga" @lightning_talk_as_large_as_possible = true include_theme("lightning-talk-toolkit") -------------- next part -------------- HTML����������������������������...Download