copy_icons.rb
来自「Amarok是一款在LINUX或其他类UNIX操作系统中运行的音频播放器软件。 」· RB 代码 · 共 29 行
RB
29 行
#!/usr/bin/env ruby## Transforms icon filenames from an icon tarball to correct format for committing## (c) 2006 Mark Kretschmann <markey@web.de># Licensed under GPL V2.require 'fileutils'def copy_icons( res ) folder = "#{res}x#{res}/actions" Dir.foreach( folder ) do |file| next if file[0, 1] == "." name = File.basename( file, ".png" ) FileUtils.cp( "#{folder}/#{file}", "hi#{res}-action-#{name}.png" ) endendcopy_icons( "16" )copy_icons( "22" )copy_icons( "32" )copy_icons( "48" )copy_icons( "64" )
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?