diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-01-19 09:19:14 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-01-19 09:19:14 +0100 |
commit | 823d1b46511abc5904f7358636ccd7ec2cbc25ea (patch) | |
tree | a38a7709c2ffa245356fffe3d6fbfe3e73f6bd22 | |
parent | 3a7fde924a9efd3c2df73961d2b19bc727c1f77d (diff) |
Convert built-in themes to new format.
42 files changed, 1839 insertions, 353 deletions
diff --git a/Makefile.am b/Makefile.am index d846a01b..7e1d78ad 100644 --- a/Makefile.am +++ b/Makefile.am @@ -144,26 +144,26 @@ README.html: README.md ### themedir=$(pkgdatadir)/themes/ theme_DATA=\ - themes/Adapta-Nokto.theme\ - themes/Arc.theme\ - themes/DarkBlue.theme\ - themes/Indego.theme\ - themes/Monokai.theme\ - themes/Paper.theme\ - themes/android_notification.theme\ - themes/blue.theme\ - themes/c64.theme\ - themes/glue_pro_blue.theme\ - themes/gruvbox-dark-hard.theme\ - themes/gruvbox-dark-soft.theme\ - themes/gruvbox-dark.theme\ - themes/gruvbox-light-hard.theme\ - themes/gruvbox-light-soft.theme\ - themes/gruvbox-light.theme\ - themes/lb.theme\ - themes/purple.theme\ - themes/solarized.theme\ - themes/solarized_alternate.theme + themes/Adapta-Nokto.rasi\ + themes/Arc.rasi\ + themes/DarkBlue.rasi\ + themes/Indego.rasi\ + themes/Monokai.rasi\ + themes/Paper.rasi\ + themes/android_notification.rasi\ + themes/blue.rasi\ + themes/c64.rasi\ + themes/glue_pro_blue.rasi\ + themes/gruvbox-dark-hard.rasi\ + themes/gruvbox-dark-soft.rasi\ + themes/gruvbox-dark.rasi\ + themes/gruvbox-light-hard.rasi\ + themes/gruvbox-light-soft.rasi\ + themes/gruvbox-light.rasi\ + themes/lb.rasi\ + themes/purple.rasi\ + themes/solarized.rasi\ + themes/solarized_alternate.rasi ## # Extra DIST diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector index a9041068..4a03e1eb 100755 --- a/script/rofi-theme-selector +++ b/script/rofi-theme-selector @@ -74,7 +74,7 @@ function find_themes() if [ -n "${p}" ] && [ -d "${TD}" ] then echo "Checking themes in: ${TD}" - for file in ${TD}/*.theme + for file in ${TD}/*.rasi do if [ -f "${file}" ] then @@ -137,7 +137,12 @@ function select_theme () <b>Alt-a</b> to accept the new theme. <b>Escape</b> to cancel Current theme: <b>${CUR}</b>""" - RES=$( create_theme_list | ${ROFI} ${MORE_FLAGS[@]} -selected-row "${SELECTED}" -mesg "${MESG}") + THEME_FLAG= + if [ -n "${SELECTED}" ] + then + THEME_FLAG="-theme ${themes[${SELECTED}]}" + fi + RES=$( create_theme_list | ${ROFI} ${THEME_FLAG} ${MORE_FLAGS[@]} -selected-row "${SELECTED}" -mesg "${MESG}") RTR=$? if [ ${RTR} = 10 ] then @@ -146,8 +151,6 @@ Current theme: <b>${CUR}</b>""" then return 1; fi - ${SED} -i '/#include .*/d' ${TMP_CONFIG_FILE} - echo "#include \"${themes[${RES}]}\"" >> ${TMP_CONFIG_FILE} CUR=${theme_names[${RES}]} SELECTED=${RES} done @@ -166,9 +169,9 @@ function set_theme() fi if [ -f "${CDIR}/config" ] then - ${SED} -i "/#include \".*\.theme\"$/d" "${CDIR}/config" + ${SED} -i "/rofi\.theme: \".*\.rasi\"$/d" "${CDIR}/config" fi - echo "#include \"${1}\"" >> "${CDIR}/config" + echo "rofi.theme: ${1}" >> "${CDIR}/config" } diff --git a/themes/Adapta-Nokto.rasi b/themes/Adapta-Nokto.rasi new file mode 100644 index 00000000..8dd4bc38 --- /dev/null +++ b/themes/Adapta-Nokto.rasi @@ -0,0 +1,89 @@ +//! ------------------------------------------------------------------------------ +//! ROFI Color theme +//! Based on Adapta-Nokto GTK theme (https://github.com/adapta-project/adapta-gtk-theme) +//! User: PyGeek03 +//! Copyright: PyGeek03 +//! ------------------------------------------------------------------------------ +* { + spacing: 2; + background: #00000000; +} +#window { + border: 2; + foreground: #FFC3C6C8; + padding: 5; + background: #FF3A4C54; +} +#window.mainbox { + border: 0; + padding: 0; +} +#window.mainbox.message.box { + border: 2px 0px 0px ; + padding: 2px 0px 0px ; +} +#window.mainbox.message.normal { + foreground: #FFFAFBFC; + background: #FF455A64; +} +#window.mainbox.listview { + fixed-height: 1; + border: 2px 0px 0px ; + columns: 1; + padding: 2px 0px 0px ; +} +#window.mainbox.listview.element { + border: 0; +} +#window.mainbox.listview.element.normal.normal { + foreground: #FFFAFBFC; + background: #FF455A64; +} +#window.mainbox.listview.element.normal.urgent { + foreground: #FFFF5252; + background: #FF455A64; +} +#window.mainbox.listview.element.normal.active { + foreground: #FF00BCD4; + background: #FF455A64; +} +#window.mainbox.listview.element.selected.normal { + foreground: #FFFAFBFC; + background: #FF00BCD4; +} +#window.mainbox.listview.element.selected.urgent { + foreground: #FFFDF6E3; + background: #FFFF5252; +} +#window.mainbox.listview.element.selected.active { + foreground: #FFFDF6E3; + background: #FF009688; +} +#window.mainbox.listview.element.alternate.normal { + foreground: #FFFAFBFC; + background: #FF455A64; +} +#window.mainbox.listview.element.alternate.urgent { + foreground: #FFFF5252; + background: #FF455A64; +} +#window.mainbox.listview.element.alternate.active { + foreground: #FF00BCD4; + background: #FF455A64; +} +#window.mainbox.listview.scrollbar { + border: 0; + padding: 0; +} +#window.mainbox.sidebar.box { + border: 2px 0px 0px ; +} +#window.mainbox.inputbar { + spacing: 0; +} +#window.mainbox.inputbar.box { +} +#window.mainbox.inputbar.normal { + foreground: #FFFAFBFC; + background: #FF455A64; +} diff --git a/themes/Adapta-Nokto.theme b/themes/Adapta-Nokto.theme deleted file mode 100644 index 76db1891..00000000 --- a/themes/Adapta-Nokto.theme +++ /dev/null @@ -1,11 +0,0 @@ -! ------------------------------------------------------------------------------ -! ROFI Color theme -! Based on Adapta-Nokto GTK theme (https://github.com/adapta-project/adapta-gtk-theme) -! User: PyGeek03 -! Copyright: PyGeek03 -! ------------------------------------------------------------------------------ -rofi.color-enabled: true -rofi.color-window: #3a4c54, #2a373e, #c3c6c8 -rofi.color-normal: #455a64, #fafbfc, #455a64, #00bcd4, #fafbfc -rofi.color-active: #455a64, #00bcd4, #455a64, #009688, #fdf6e3 -rofi.color-urgent: #455a64, #ff5252, #455a64, #ff5252, #fdf6e3 diff --git a/themes/Arc.rasi b/themes/Arc.rasi new file mode 100644 index 00000000..b58be36b --- /dev/null +++ b/themes/Arc.rasi @@ -0,0 +1,89 @@ +//! ------------------------------------------------------------------------------ +//! ROFI Color theme +//! User: Sergio Morales +//! Copyright: Sergio Morales +//! ------------------------------------------------------------------------------ +//! Use extended color scheme +* { + spacing: 2; + background: #00000000; +} +#window { + border: 2; + foreground: #FFF5F5F5; + padding: 5; + background: #FFFFFFFF; +} +#window.mainbox { + border: 0; + padding: 0; +} +#window.mainbox.message.box { + border: 2px 0px 0px ; + padding: 2px 0px 0px ; +} +#window.mainbox.message.normal { + foreground: #FF525D76; + background: #FFFFFFFF; +} +#window.mainbox.listview { + fixed-height: 1; + border: 2px 0px 0px ; + columns: 1; + padding: 2px 0px 0px ; +} +#window.mainbox.listview.element { + border: 0; +} +#window.mainbox.listview.element.normal.normal { + foreground: #FF525D76; + background: #FFFFFFFF; +} +#window.mainbox.listview.element.normal.urgent { + foreground: #FFDC322F; + background: #FFFFFFFF; +} +#window.mainbox.listview.element.normal.active { + foreground: #FFC2CAD0; + background: #FFFFFFFF; +} +#window.mainbox.listview.element.selected.normal { + foreground: #FFFFFFFF; + background: #FF5294E2; +} +#window.mainbox.listview.element.selected.urgent { + foreground: #FFDC322F; + background: #FF5294E2; +} +#window.mainbox.listview.element.selected.active { + foreground: #FFC2CAD0; + background: #FF5294E2; +} +#window.mainbox.listview.element.alternate.normal { + foreground: #FF525D76; + background: #FFF5F5F5; +} +#window.mainbox.listview.element.alternate.urgent { + foreground: #FFDC322F; + background: #FFF5F5F5; +} +#window.mainbox.listview.element.alternate.active { + foreground: #FFC2CAD0; + background: #FFF5F5F5; +} +#window.mainbox.listview.scrollbar { + border: 0; + padding: 0; +} +#window.mainbox.sidebar.box { + border: 2px 0px 0px ; +} +#window.mainbox.inputbar { + spacing: 0; +} +#window.mainbox.inputbar.box { +} +#window.mainbox.inputbar.normal { + foreground: #FF525D76; + background: #FFFFFFFF; +} diff --git a/themes/Arc.theme b/themes/Arc.theme deleted file mode 100644 index c4e09546..00000000 --- a/themes/Arc.theme +++ /dev/null @@ -1,17 +0,0 @@ -! ------------------------------------------------------------------------------ -! ROFI Color theme -! User: Sergio Morales -! Copyright: Sergio Morales -! ------------------------------------------------------------------------------ -! Use extended color scheme -rofi.color-enabled: true -! Color scheme for normal row -rofi.color-normal: #ffffff,#525d76,#f5f5f5,#5294e2,#ffffff -! Color scheme for urgent row -rofi.color-urgent: #ffffff,#dc322f,#f5f5f5,#5294e2,#dc322f -! Color scheme for active row -rofi.color-active: #ffffff,#c2cad0,#f5f5f5,#5294e2,#c2cad0 -! Color scheme window -rofi.color-window: #ffffff,#f5f5f5 -! Separator style (none, dash, solid) -rofi.separator-style: solid diff --git a/themes/DarkBlue.rasi b/themes/DarkBlue.rasi new file mode 100644 index 00000000..ae387985 --- /dev/null +++ b/themes/DarkBlue.rasi @@ -0,0 +1,89 @@ +//! ------------------------------------------------------------------------------ +//! ROFI Color theme +//! User: qball +//! Copyright: Dave Davenport +//! ------------------------------------------------------------------------------ +//! "Color scheme for normal row" Set from: File +* { + spacing: 2; + background: #00000000; +} +#window { + border: 2; + foreground: #FFDBDFBC; + padding: 5; + background: #DD000021; +} +#window.mainbox { + border: 0; + padding: 0; +} +#window.mainbox.message.box { + border: 2px 0px 0px ; + padding: 2px 0px 0px ; +} +#window.mainbox.message.normal { + foreground: #FFDBDFBC; + background: #00000000; +} +#window.mainbox.listview { + fixed-height: 1; + border: 2px 0px 0px ; + columns: 1; + padding: 2px 0px 0px ; +} +#window.mainbox.listview.element { + border: 0; +} +#window.mainbox.listview.element.normal.normal { + foreground: #FFDBDFBC; + background: #00000000; +} +#window.mainbox.listview.element.normal.urgent { + foreground: #FFFF81FF; + background: #00000000; +} +#window.mainbox.listview.element.normal.active { + foreground: #FF8AC4FF; + background: #00000000; +} +#window.mainbox.listview.element.selected.normal { + foreground: #FF02143F; + background: #FFDBDFBC; +} +#window.mainbox.listview.element.selected.urgent { + foreground: #FF02143F; + background: #FFFF817F; +} +#window.mainbox.listview.element.selected.active { + foreground: #FF02143F; + background: #FF8AC4FF; +} +#window.mainbox.listview.element.alternate.normal { + foreground: #FFDBDFBC; + background: #00000000; +} +#window.mainbox.listview.element.alternate.urgent { + foreground: #FFFF81FF; + background: #00000000; +} +#window.mainbox.listview.element.alternate.active { + foreground: #FF8AC4FF; + background: #00000000; +} +#window.mainbox.listview.scrollbar { + border: 0; + padding: 0; +} +#window.mainbox.sidebar.box { + border: 2px 0px 0px ; +} +#window.mainbox.inputbar { + spacing: 0; +} +#window.mainbox.inputbar.box { +} +#window.mainbox.inputbar.normal { + foreground: #FFDBDFBC; + background: #00000000; +} diff --git a/themes/DarkBlue.theme b/themes/DarkBlue.theme deleted file mode 100644 index eb4d2d4d..00000000 --- a/themes/DarkBlue.theme +++ /dev/null @@ -1,15 +0,0 @@ -! ------------------------------------------------------------------------------ -! ROFI Color theme -! User: qball -! Copyright: Dave Davenport -! ------------------------------------------------------------------------------ -! "Color scheme for normal row" Set from: File -rofi.color-normal: argb:00000000, #dbdfbc, argb:00000000, #dbdfbc, #02143f -! "Color scheme for urgent row" Set from: File -rofi.color-urgent: argb:00000000, #ff81ff, argb:00000000, #ff817f, #02143f -! "Color scheme for active row" Set from: File -rofi.color-active: argb:00000000, #8ac4ff, argb:00000000, #8ac4ff, #02143f -! "Color scheme window" Set from: File -rofi.color-window: argb:dd000021, #dbdfbc, #dbdfbc -! "Separator style (none, dash, solid)" Set from: XResources -rofi.separator-style: solid diff --git a/themes/Indego.rasi b/themes/Indego.rasi new file mode 100644 index 00000000..ea74ed68 --- /dev/null +++ b/themes/Indego.rasi @@ -0,0 +1,89 @@ +//! ------------------------------------------------------------------------------ +//! ROFI Color theme +//! User: qball +//! Copyright: Dave Davenport +//! ------------------------------------------------------------------------------ +//! "Color scheme for normal row" Set from: File +* { + spacing: 2; + background: #00000000; +} +#window { + border: 2; + foreground: #FFE8EAF6; + padding: 5; + background: #FF1A237E; +} +#window.mainbox { + border: 0; + padding: 0; +} +#window.mainbox.message.box { + border: 2px 0px 0px ; + padding: 2px 0px 0px ; +} +#window.mainbox.message.normal { + foreground: #FFE8EAF6; + background: #007986CB; +} +#window.mainbox.listview { + fixed-height: 1; + border: 2px 0px 0px ; + columns: 1; + padding: 2px 0px 0px ; +} +#window.mainbox.listview.element { + border: 0; +} +#window.mainbox.listview.element.normal.normal { + foreground: #FFE8EAF6; + background: #007986CB; +} +#window.mainbox.listview.element.normal.urgent { + foreground: #FFFFCDD2; + background: #00FDF6E3; +} +#window.mainbox.listview.element.normal.active { + foreground: #FFB2EBF2; + background: #00FDF6E3; +} +#window.mainbox.listview.element.selected.normal { + foreground: #FFE8EAF6; + background: #FF3F51B5; +} +#window.mainbox.listview.element.selected.urgent { + foreground: #FFB71C1C; + background: #FFFFCDD2; +} +#window.mainbox.listview.element.selected.active { + foreground: #FF006064; + background: #FFB2EBF2; +} +#window.mainbox.listview.element.alternate.normal { + foreground: #FFE8EAF6; + background: #FF283593; +} +#window.mainbox.listview.element.alternate.urgent { + foreground: #FFFFCDD2; + background: #FFB71C1C; +} +#window.mainbox.listview.element.alternate.active { + foreground: #FFB2EBF2; + background: #FF006064; +} +#window.mainbox.listview.scrollbar { + border: 0; + padding: 0; +} +#window.mainbox.sidebar.box { + border: 2px 0px 0px ; +} +#window.mainbox.inputbar { + spacing: 0; +} +#window.mainbox.inputbar.box { +} +#window.mainbox.inputbar.normal { + foreground: #FFE8EAF6; + background: #007986CB; +} diff --git a/themes/Indego.theme b/themes/Indego.theme deleted file mode 100644 index 5b75502c..00000000 --- a/themes/Indego.theme +++ /dev/null @@ -1,15 +0,0 @@ -! ------------------------------------------------------------------------------ -! ROFI Color theme -! User: qball -! Copyright: Dave Davenport -! ------------------------------------------------------------------------------ -! "Color scheme for normal row" Set from: File -rofi.color-normal: argb:07986cb, #e8eaf6, #283593, #3f51b5, #e8eaf6 -! "Color scheme for urgent row" Set from: File -rofi.color-urgent: argb:0fdf6e3, #ffcdd2, #b71c1c, #ffcdd2, #b71c1c -! "Color scheme for active row" Set from: File -rofi.color-active: argb:0fdf6e3, #b2ebf2, #006064, #b2ebf2, #006064 -! "Color scheme window" Set from: File -rofi.color-window: #1a237e, #e8eaf6, #e8eaf6 -! "Separator style (none, dash, solid)" Set from: XResources -rofi.separator-style: solid diff --git a/themes/Monokai.rasi b/themes/Monokai.rasi new file mode 100644 index 00000000..b1b0072e --- /dev/null +++ b/themes/Monokai.rasi @@ -0,0 +1,89 @@ +//! ------------------------------------------------------------------------------ +//! ROFI Color theme +//! User: milouse +//! Copyright: Étienne Deparis +//! ------------------------------------------------------------------------------ +//! "Color scheme for normal row" Set from: File +* { + spacing: 2; + background: #00000000; +} +#window { + border: 2; + foreground: #FFE6DB74; + padding: 5; + background: #EE272822; +} +#window.mainbox { + border: 0; + padding: 0; +} +#window.mainbox.message.box { + border: 2px 0px 0px ; + padding: 2px 0px 0px ; +} +#window.mainbox.message.normal { + foreground: #FFF8F8F2; + background: #00272822; +} +#window.mainbox.listview { + fixed-height: 1; + border: 2px 0px 0px ; + columns: 1; + padding: 2px 0px 0px ; +} +#window.mainbox.listview.element { + border: 0; +} +#window.mainbox.listview.element.normal.normal { + foreground: #FFF8F8F2; + background: #00272822; +} +#window.mainbox.listview.element.normal.urgent { + foreground: #FFF92672; + background: #00272822; +} +#window.mainbox.listview.element.normal.active { + foreground: #FFA6E22A; + background: #00272822; +} +#window.mainbox.listview.element.selected.normal { + foreground: #FFF8F8F2; + background: #FF141411; +} +#window.mainbox.listview.element.selected.urgent { + foreground: #FFF8F8F2; + background: #FFF92672; +} +#window.mainbox.listview.element.selected.active { + foreground: #FFA6E22A; + background: #FF141411; +} +#window.mainbox.listview.element.alternate.normal { + foreground: #FFF8F8F2; + background: #00272822; +} +#window.mainbox.listview.element.alternate.urgent { + foreground: #FFF92672; + background: #00272822; +} +#window.mainbox.listview.element.alternate.active { + foreground: #FFA6E22A; + background: #00272822; +} +#window.mainbox.listview.scrollbar { + border: 0; + padding: 0; +} +#window.mainbox.sidebar.box { + border: 2px 0px 0px ; +} +#window.mainbox.inputbar { + spacing: 0; +} +#window.mainbox.inputbar.box { +} +#window.mainbox.inputbar.normal { + foreground: #FFF8F8F2; + background: #00272822; +} diff --git a/themes/Monokai.theme b/themes/Monokai.theme deleted file mode 100644 index 47d151ae..00000000 --- a/themes/Monokai.theme +++ /dev/null @@ -1,15 +0,0 @@ -! ------------------------------------------------------------------------------ -! ROFI Color theme -! User: milouse -! Copyright: Étienne Deparis -! ------------------------------------------------------------------------------ -! "Color scheme for normal row" Set from: File -rofi.color-normal: argb:00272822, #f8f8f2, argb:00272822, #141411, #f8f8f2 -! "Color scheme for urgent row" Set from: File -rofi.color-urgent: argb:00272822, #f92672, argb:00272822, #f92672, #f8f8f2 -! "Color scheme for active row" Set from: File -rofi.color-active: argb:00272822, #a6e22a, argb:00272822, #141411, #a6e22a -! "Color scheme window" Set from: File -rofi.color-window: argb:ee272822, #002b36, #e6db74 -! "Separator style (none, dash, solid)" Set from: File -rofi.separator-style: solid diff --git a/themes/Paper.rasi b/themes/Paper.rasi new file mode 100644 index 00000000..2622d809 --- /dev/null +++ b/themes/Paper.rasi @@ -0,0 +1,89 @@ +//! ------------------------------------------------------------------------------ +//! ROFI Color theme +//! User: qball +//! Copyright: Dave Davenport +//! ------------------------------------------------------------------------------ +//! "Color scheme for normal row" Set from: File +* { + spacing: 2; + background: #00000000; +} +#window { + border: 2; + foreground: #FF444444; + padding: 5; + background: #FFF5F5F5; +} +#window.mainbox { + border: 0; + padding: 0; +} +#window.mainbox.message.box { + border: 2px 0px 0px ; + padding: 2px 0px 0px ; +} +#window.mainbox.message.normal { + foreground: #FF002B36; + background: #00F5F5F5; +} +#window.mainbox.listview { + fixed-height: 1; + border: 2px 0px 0px ; + columns: 1; + padding: 2px 0px 0px ; +} +#window.mainbox.listview.element { + border: 0; +} +#window.mainbox.listview.element.normal.normal { + foreground: #FF002B36; + background: #00F5F5F5; +} +#window.mainbox.listview.element.normal.urgent { + foreground: #FFD75F00; + background: #FFF5F5F5; +} +#window.mainbox.listview.element.normal.active { + foreground: #FF005F87; + background: #FFF5F5F5; +} +#window.mainbox.listview.element.selected.normal { + foreground: #FFF5F5F5; + background: #FF4271AE; +} +#window.mainbox.listview.element.selected.urgent { + foreground: #FFF5F5F5; + background: #FFD75F00; +} +#window.mainbox.listview.element.selected.active { + foreground: #FFF5F5F5; + background: #FF005F87; +} +#window.mainbox.listview.element.alternate.normal { + foreground: #FF002B36; + background: #FFD0D0D0; +} +#window.mainbox.listview.element.alternate.urgent { + foreground: #FFD75F00; + background: #FFD0D0D0; +} +#window.mainbox.listview.element.alternate.active { + foreground: #FF005F87; + background: #FFD0D0D0; +} +#window.mainbox.listview.scrollbar { + border: 0; + padding: 0; +} +#window.mainbox.sidebar.box { + border: 2px 0px 0px ; +} +#window.mainbox.inputbar { + spacing: 0; +} +#window.mainbox.inputbar.box { +} +#win |