Commit for new coloured cursors

This commit is contained in:
Sourav Goswami
2020-08-24 03:57:21 +05:30
parent 2ed366bb60
commit f8a5db49c5
5549 changed files with 2375 additions and 141 deletions

View File

@@ -11,10 +11,11 @@ white = #C6C6C6
# Spark cursors
spark_dark = #222
spark_lite = #eee
spark_red = #ff5
spark_red = #f55
spark_blue = #55f
spark_pink = #ff50a6
spark_orange = #FFA726
spark_green = #4E9A06
spark_purple = #912BFF
spark_lite = #eee
spark_yellow = #E7EC00

View File

@@ -23,6 +23,8 @@ hex = (?0..?9).to_a + (?a..?f).to_a << ?#
if File.readable?(CONFIG_FILE)
IO.readlines(CONFIG_FILE).each_with_index do |x, i|
next if x.start_with?(?#) || x.strip.empty?
name, colour = x.split(?=).then { |y| [y[0].to_s.strip, y[1].to_s.strip] }
# Make sure colour name is not 0 characters long or too long
@@ -49,7 +51,6 @@ if File.readable?(CONFIG_FILE)
colours.merge!(name => colour)
end
else
puts "Unable to read #{CONFIG_FILE}"
end