rabbit-theme-yarp 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83c36466926b4dde0c006b4d7283a744cc29a3d73299451ff338e95ba01ca68f
4
- data.tar.gz: 3c02cf9c43dca0d3a1dc62e3592783b637e7060150591f0dae191669065b4a79
3
+ metadata.gz: d5a507ee8e5c7d1f3017950f80cf4ab065197d44f28435e2f82227d49fa20554
4
+ data.tar.gz: d39405d387cf3d2cdf0462bc1d31b301a74a0c2da20ba4860324b13bf611e2c5
5
5
  SHA512:
6
- metadata.gz: 6e609068da4b01606d35b185fd487fa28a6a4276d1369eb61e7c754f2b05fa2c7d4ea44f8fecd073bbeba92a242b61b9c8a27b1f3d9b91cba4d389a455f4f2c7
7
- data.tar.gz: c3413746276abe0b08e987b1eeafb8c336b52218a989d3c9f114ce0f38eb61b317486b760dd9416a7410dad49d4a8904277c31c1c3b43517be7d62497a90587a
6
+ metadata.gz: 12520c2dedbee8010d0c02db771976c44e96cd5f0a7473bc57ac99c4de1118ec462d30c646d78646e8a9044ae0f094fcfd389ddb903d407245d62af4eda0ea56
7
+ data.tar.gz: 2bb75e8c8c61b56e48382d29b1c81ee4d1059e60fa59b03eb0ee392ce501e7febe3cf27b9a4414680a14b656d01926e3fa103025f2a51e4ef96da6a38f8033b1
@@ -4,13 +4,13 @@ tags:
4
4
  - rabbit
5
5
  - theme
6
6
  - yarp
7
- version: 1.0.0
7
+ version: 1.0.1
8
8
  licenses:
9
9
  - CC-BY-SA-3.0
10
10
  author:
11
11
  markup_language: :markdown
12
12
  name: Daniele E. Domenichelli
13
13
  email: daniele.domenichelli@iit.it
14
- rubygems_user: drdanz
14
+ rubygems_user: drdanz
15
15
  slideshare_user:
16
16
  speaker_deck_user:
Binary file
Binary file
Binary file
data/theme.rb CHANGED
@@ -171,12 +171,12 @@ slide_footer_loader.resize(canvas.width, footer_height)
171
171
  slide_body_bottom = footer_height
172
172
  slide_body_height = canvas.height - slide_body_top - slide_body_bottom
173
173
 
174
- @slide_banner ||= "images/logo-icub.png"
174
+ @slide_banner ||= "images/logo-hsp.png"
175
175
  slide_banner_loader = ImageLoader.new(find_file(@slide_banner))
176
- banner_height = canvas.height/26.0
176
+ banner_height = canvas.height/15.0
177
177
  slide_banner_loader.resize(nil, banner_height)
178
- banner_pos_x = canvas.width - slide_banner_loader.width
179
- banner_pos_y = canvas.height - slide_banner_loader.height - footer_height
178
+ banner_pos_x = canvas.width - slide_banner_loader.width - canvas.width * 0.01
179
+ banner_pos_y = canvas.height - slide_banner_loader.height - footer_height - canvas.height * 0.01
180
180
 
181
181
  #----------------------------------------
182
182
  # Slide Header Settings
@@ -314,15 +314,27 @@ end
314
314
  @title_shadow_color ||= @yarp_color_02_t
315
315
  include_theme("title-shadow")
316
316
 
317
+ #--------------------------------------
318
+ # set title color and background-image
319
+ #--------------------------------------
320
+ # This is at the end because it has issues with the slide-footer-info theme
321
+ @title_background_color ||= @yarp_color_03
322
+ include_theme("title-background-color")
323
+ # For some reason the background image is not found in subdirectory
324
+ @title_background_image ||= File.expand_path(find_file("images/yarp-robot-transp_b-512.png"))
325
+ include_theme("title-background-image")
326
+
317
327
  #--------------------------------------
318
328
  # set logo in title slide (bottom right)
319
329
  #--------------------------------------
320
- @title_logo ||= "images/logo-icub.png"
330
+ @title_logo ||= "images/logo-full-hsp.png"
321
331
  title_logo_loader = ImageLoader.new(find_file(@title_logo))
322
332
  title_logo_pre_draw_proc = Proc.new do |slide, canvas, x, y, w, h, simulation|
323
333
  unless simulation
324
- draw_x = canvas.width - title_logo_loader.width
325
- draw_y = canvas.height - title_logo_loader.height
334
+ banner_height = canvas.height/7.5
335
+ title_logo_loader.resize(nil, banner_height)
336
+ draw_x = canvas.width - title_logo_loader.width - canvas.width * 0.03
337
+ draw_y = canvas.height - title_logo_loader.height - canvas.height * 0.03
326
338
  title_logo_loader.draw(canvas, draw_x, draw_y)
327
339
  end
328
340
  [x, y, w, h]
@@ -332,13 +344,3 @@ match(TitleSlide) do |slides|
332
344
  slides.delete_pre_draw_proc_by_name(name)
333
345
  slides.add_pre_draw_proc(name, &title_logo_pre_draw_proc)
334
346
  end
335
-
336
- #--------------------------------------
337
- # set title color and background-image
338
- #--------------------------------------
339
- # This is at the end because it has issues with the slide-footer-info theme
340
- @title_background_color ||= @yarp_color_03
341
- include_theme("title-background-color")
342
- # For some reason the background image is not found in subdirectory
343
- @title_background_image ||= File.expand_path(find_file("images/yarp-robot-transp_b-512.png"))
344
- include_theme("title-background-image")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit-theme-yarp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniele E. Domenichelli
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-09 00:00:00.000000000 Z
11
+ date: 2020-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rabbit
@@ -42,7 +42,8 @@ files:
42
42
  - data/images/YARPino.png
43
43
  - data/images/bottom-transp.png
44
44
  - data/images/bottom.png
45
- - data/images/logo-icub.png
45
+ - data/images/logo-full-hsp.png
46
+ - data/images/logo-hsp.png
46
47
  - data/images/top-thin-transp.png
47
48
  - data/images/top-thin.png
48
49
  - data/images/top-transp.png
@@ -61,7 +62,7 @@ homepage: http://theme.rabbit-shocker.org/themes/yarp/
61
62
  licenses:
62
63
  - CC-BY-SA-3.0
63
64
  metadata: {}
64
- post_install_message:
65
+ post_install_message:
65
66
  rdoc_options: []
66
67
  require_paths:
67
68
  - lib
@@ -76,9 +77,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
77
  - !ruby/object:Gem::Version
77
78
  version: '0'
78
79
  requirements: []
79
- rubyforge_project:
80
- rubygems_version: 2.7.6
81
- signing_key:
80
+ rubygems_version: 3.1.4
81
+ signing_key:
82
82
  specification_version: 4
83
83
  summary: Rabbit YARP Theme
84
84
  test_files: []
Binary file