mirror of
https://github.com/mrfluffy-dev/oreo-cursor.git
synced 2026-01-17 05:40:34 +00:00
Commit for new coloured cursors
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user