Skip to content

Commit

Permalink
[wbm:1.5] v0.22
Browse files Browse the repository at this point in the history
* Adopt 0.22 frontend interface. remove platform quirks.
* Remove option "display icon"
* Appwide input history
* Fix initial query breaks initializatoin
* Fix nord theme
* Fix pixmap size
* Fix theme templates
* Give focus back on hide
* Use albert::Iconprovider
  • Loading branch information
ManuelSchneid3r committed Aug 5, 2023
1 parent 93b4dd1 commit 7d12a08
Show file tree
Hide file tree
Showing 58 changed files with 1,969 additions and 2,038 deletions.
101 changes: 101 additions & 0 deletions widgetsboxmodel/ArcTemplate.qss
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
/*
* author: ubervison <https://github.com/ubervison>
*
* Check http://doc.qt.io/qt-5/stylesheet-syntax.html especially the subtopics:
* The Style Sheet Syntax (http://doc.qt.io/qt-5/stylesheet-syntax.html)
* Qt Style Sheets Reference (http://doc.qt.io/qt-5/stylesheet-reference.html)
*/

* {
border: none;
color : #%foreground_color%;
background-color: #%background_color%;
}

#frame {
padding: 4px;
border-radius: 3px;
background-color: #%background_color%;

/* Workaround for Qt to get fixed size button*/
min-width:640px;
max-width:640px;
}

#inputLine {
padding: 2px;
border-radius: 2px;
border: 1px solid #%border_color%;
font-size: 36px;
selection-color: #%background_color%;
selection-background-color: #%foreground_color%;
background-color: #%inputline_color%;
}

#settingsButton {
color : #%button_color%;
background-color: #%background_color%;
padding: 4px;

/* Respect the frame border */
margin: 6px 6px 0px 0px;
border-top-right-radius: 6px;
border-bottom-left-radius: 10px;

/* Workaround for Qt to get fixed size button*/
min-width:13px;
min-height:13px;
max-width:13px;
max-height:13px;
}

/********** ListViews **********/

QListView {
selection-color: #%foreground_color%;
}

QListView::item:selected {
background: #%selection_background_color%;
border: 1px solid #%selection_border_color%;
}

QListView QScrollBar:vertical {
width: 5px;
background: transparent;
}

QListView QScrollBar::handle:vertical {
background: #%scroll_color%;
min-height: 24px;
}

QListView QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical,
QListView QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical,
QListView QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
border: 0px;
width: 0px;
height: 0px;
background: transparent;
}

/********** actionList **********/

QListView#actionList {
font-size: 20px;
}

QListView#actionList::item{
height:28px;
}

/********** resultsList **********/

QListView#resultsList {
icon-size: 44px;
font-size: 26px;
}

QListView#resultsList::item{
height:48px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ function makeStyle(){
-e "s/%selection_border_color%/$9/g" > "${10}"
}

mkdir themes -p

#makeStyle bg fg input border button scrollbar sel_bg sel_border output
makeStyle "$TEMPLATE" "e7e8eb" "727A8F" "fdfdfd" "CFD6E6" "ffffff" "b8babf" "95c4fb" "cfd6e6" "themes/Arc Blue.qss"
makeStyle "$TEMPLATE" "e7e8eb" "727A8F" "fdfdfd" "CFD6E6" "ffffff" "b8babf" "F5F6F7" "4084D6" "themes/Arc Grey.qss"
makeStyle "$TEMPLATE" "383C4A" "AFB8C5" "404552" "21252B" "ffffff" "b8babf" "4084D6" "4084D6" "themes/Arc Dark Blue.qss"
makeStyle "$TEMPLATE" "383C4A" "AFB8C5" "404552" "21252B" "ffffff" "b8babf" "404552" "2B2E39" "themes/Arc Dark Grey.qss"
makeStyle "$TEMPLATE" "383C4A" "AFB8C5" "404552" "21252B" "ffffff" "b8babf" "404552" "2B2E39" "themes/Arc Dark Grey.qss"
6 changes: 1 addition & 5 deletions widgetsboxmodel/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project(widgetsboxmodel VERSION 1.4)
project(widgetsboxmodel VERSION 1.5)
albert_plugin(
NAME "Widgets BoxModel"
DESCRIPTION "The native frontend"
Expand All @@ -10,8 +10,4 @@ albert_plugin(
FRONTEND
)

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_link_libraries(${PROJECT_NAME} PRIVATE objc "-framework Cocoa")
endif()

install(DIRECTORY "themes/" DESTINATION "${CMAKE_INSTALL_DATADIR}/albert/${PROJECT_NAME}/themes")
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ QListView#resultsList {

QListView#resultsList::item{
padding: 8px 0px 0px 0px;
height:48px;
}

/********** actionList **********/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function makeStyle(){
-e "s/%selection_background_color%/$7/g" > "${8}"
}

mkdir themes -p

#makeStyle bg fg button scroll sel_fg sel_bg output
makeStyle "$TEMPLATE" "fcfcfc" "808080" "808080" "c0c0c0" "606060" "e0e0e0" "${1}Spotlight.qss"
makeStyle "$TEMPLATE" "030303" "808080" "808080" "404040" "a0a0a0" "202020" "${1}Spotlight Dark.qss"
makeStyle "$TEMPLATE" "fcfcfc" "808080" "808080" "c0c0c0" "606060" "e0e0e0" "themes/Spotlight.qss"
makeStyle "$TEMPLATE" "030303" "808080" "808080" "404040" "a0a0a0" "202020" "themes/Spotlight Dark.qss"
101 changes: 101 additions & 0 deletions widgetsboxmodel/StandardThemeTemplate.qss
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
/*
* author: Manuel Schneider <https://github.com/ManuelSchneid3r>
*
* Check http://doc.qt.io/qt-5/stylesheet-syntax.html especially the subtopics:
* The Style Sheet Syntax (http://doc.qt.io/qt-5/stylesheet-syntax.html)
* Qt Style Sheets Reference (http://doc.qt.io/qt-5/stylesheet-reference.html)
*/

* {
border: none;
color : #%foreground_color%;
background-color: #%background_color%;
}

#frame {
padding: 6px;
border-radius: 12px;
background-color: #%background_color%;
border: 6px solid #%border_color%;

/* Workaround for Qt to get fixed size button*/
min-width:640px;
max-width:640px;
}

#inputLine {
padding: 2px;
border-radius: 2px;
font-size: 36px;
selection-color: #%background_color%;
selection-background-color: #%foreground_color%;
background-color: #%inputline_color%;
}

#settingsButton {
color : #%button_color%;
background-color: #%background_color%;
padding: 4px;

/* Respect the frame border */
margin: 6px 6px 0px 0px;
border-top-right-radius: 6px;
border-bottom-left-radius: 10px;

/* Workaround for Qt to get fixed size button*/
min-width:13px;
min-height:13px;
max-width:13px;
max-height:13px;
}

/********** ListViews **********/

QListView {
background: transparent;
selection-color: #%selection_foreground_color%;
}

QListView::item:selected {
background: qlineargradient(x1:0, x2:1, stop:0.0 #20%selection_background_color%, stop:0.5 #10%selection_background_color%, stop:1.0 #20%selection_background_color% );
}

QListView QScrollBar:vertical {
width: 5px;
background: transparent;
}

QListView QScrollBar::handle:vertical {
background: #%scroll_color%;
min-height: 24px;
}

QListView QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical,
QListView QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical,
QListView QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
border: 0px;
width: 0px;
height: 0px;
background: transparent;
}

/********** actionList **********/

QListView#actionList {
font-size: 20px;
}

QListView#actionList::item{
height:28px;
}

/********** resultsList **********/

QListView#resultsList {
icon-size: 44px;
font-size: 26px;
}

QListView#resultsList::item{
height:48px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,36 @@ function makeStyle(){
-e "s/%selection_border_color%/${10}/g" > "${11}"
}

mkdir themes -p

#makeStyle bg fg input border button scroll sel_fg sel_bg sel_bor output
makeStyle "$TEMPLATE" "FFFFFF" "808080" "D0D0D0" "808080" "808080" "808080" "808080" "808080" "808080" "${1}Bright.qss"
makeStyle "$TEMPLATE" "FFFFFF" "808080" "D0D0D0" "FF8000" "FF8000" "FF8000" "808080" "FF8000" "FF8000" "${1}BrightOrange.qss"
makeStyle "$TEMPLATE" "FFFFFF" "808080" "D0D0D0" "FF0080" "FF0080" "FF0080" "808080" "FF0080" "FF0080" "${1}BrightMagenta.qss"
makeStyle "$TEMPLATE" "FFFFFF" "808080" "D0D0D0" "00FF80" "00FF80" "00FF80" "808080" "00FF80" "00FF80" "${1}BrightMint.qss"
makeStyle "$TEMPLATE" "FFFFFF" "808080" "D0D0D0" "80FF00" "80FF00" "80FF00" "808080" "80FF00" "80FF00" "${1}BrightGreen.qss"
makeStyle "$TEMPLATE" "FFFFFF" "808080" "D0D0D0" "0080FF" "0080FF" "0080FF" "808080" "0080FF" "0080FF" "${1}BrightBlue.qss"
makeStyle "$TEMPLATE" "FFFFFF" "808080" "D0D0D0" "8000FF" "8000FF" "8000FF" "808080" "8000FF" "8000FF" "${1}BrightViolet.qss"
makeStyle "$TEMPLATE" "404040" "808080" "202020" "808080" "808080" "808080" "808080" "808080" "808080" "${1}Dark.qss"
makeStyle "$TEMPLATE" "404040" "808080" "202020" "FF8000" "FF8000" "FF8000" "808080" "FF8000" "FF8000" "${1}DarkOrange.qss"
makeStyle "$TEMPLATE" "404040" "808080" "202020" "FF0080" "FF0080" "FF0080" "808080" "FF0080" "FF0080" "${1}DarkMagenta.qss"
makeStyle "$TEMPLATE" "404040" "808080" "202020" "00FF80" "00FF80" "00FF80" "808080" "00FF80" "00FF80" "${1}DarkMint.qss"
makeStyle "$TEMPLATE" "404040" "808080" "202020" "80FF00" "80FF00" "80FF00" "808080" "80FF00" "80FF00" "${1}DarkGreen.qss"
makeStyle "$TEMPLATE" "404040" "808080" "202020" "0080FF" "0080FF" "0080FF" "808080" "0080FF" "0080FF" "${1}DarkBlue.qss"
makeStyle "$TEMPLATE" "404040" "808080" "202020" "8000FF" "8000FF" "8000FF" "808080" "8000FF" "8000FF" "${1}DarkViolet.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "b58900" "b58900" "b58900" "93a1a1" "b58900" "b58900" "${1}SolarizedDarkYellow.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "cb4b16" "cb4b16" "cb4b16" "93a1a1" "cb4b16" "cb4b16" "${1}SolarizedDarkOrange.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "dc322f" "dc322f" "dc322f" "93a1a1" "dc322f" "dc322f" "${1}SolarizedDarkRed.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "d33682" "d33682" "d33682" "93a1a1" "d33682" "d33682" "${1}SolarizedDarkMagenta.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "6c71c4" "6c71c4" "6c71c4" "93a1a1" "6c71c4" "6c71c4" "${1}SolarizedDarkViolet.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "268bd2" "268bd2" "268bd2" "93a1a1" "268bd2" "268bd2" "${1}SolarizedDarkBlue.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "2aa198" "2aa198" "2aa198" "93a1a1" "2aa198" "2aa198" "${1}SolarizedDarkCyan.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "859900" "859900" "859900" "93a1a1" "859900" "859900" "${1}SolarizedDarkGreen.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "b58900" "b58900" "b58900" "586e75" "b58900" "b58900" "${1}SolarizedBrightYellow.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "cb4b16" "cb4b16" "cb4b16" "586e75" "cb4b16" "cb4b16" "${1}SolarizedBrightOrange.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "dc322f" "dc322f" "dc322f" "586e75" "dc322f" "dc322f" "${1}SolarizedBrightRed.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "d33682" "d33682" "d33682" "586e75" "d33682" "d33682" "${1}SolarizedBrightMagenta.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "6c71c4" "6c71c4" "6c71c4" "586e75" "6c71c4" "6c71c4" "${1}SolarizedBrightViolet.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "268bd2" "268bd2" "268bd2" "586e75" "268bd2" "268bd2" "${1}SolarizedBrightBlue.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "2aa198" "2aa198" "2aa198" "586e75" "2aa198" "2aa198" "${1}SolarizedBrightCyan.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "859900" "859900" "859900" "586e75" "859900" "859900" "${1}SolarizedBrightGreen.qss"
makeStyle "$TEMPLATE" "FFFFFF" "808080" "D0D0D0" "808080" "808080" "808080" "808080" "808080" "808080" "themes/Bright.qss"
makeStyle "$TEMPLATE" "FFFFFF" "808080" "D0D0D0" "FF8000" "FF8000" "FF8000" "808080" "FF8000" "FF8000" "themes/BrightOrange.qss"
makeStyle "$TEMPLATE" "FFFFFF" "808080" "D0D0D0" "FF0080" "FF0080" "FF0080" "808080" "FF0080" "FF0080" "themes/BrightMagenta.qss"
makeStyle "$TEMPLATE" "FFFFFF" "808080" "D0D0D0" "00FF80" "00FF80" "00FF80" "808080" "00FF80" "00FF80" "themes/BrightMint.qss"
makeStyle "$TEMPLATE" "FFFFFF" "808080" "D0D0D0" "80FF00" "80FF00" "80FF00" "808080" "80FF00" "80FF00" "themes/BrightGreen.qss"
makeStyle "$TEMPLATE" "FFFFFF" "808080" "D0D0D0" "0080FF" "0080FF" "0080FF" "808080" "0080FF" "0080FF" "themes/BrightBlue.qss"
makeStyle "$TEMPLATE" "FFFFFF" "808080" "D0D0D0" "8000FF" "8000FF" "8000FF" "808080" "8000FF" "8000FF" "themes/BrightViolet.qss"
makeStyle "$TEMPLATE" "404040" "808080" "202020" "808080" "808080" "808080" "808080" "808080" "808080" "themes/Dark.qss"
makeStyle "$TEMPLATE" "404040" "808080" "202020" "FF8000" "FF8000" "FF8000" "808080" "FF8000" "FF8000" "themes/DarkOrange.qss"
makeStyle "$TEMPLATE" "404040" "808080" "202020" "FF0080" "FF0080" "FF0080" "808080" "FF0080" "FF0080" "themes/DarkMagenta.qss"
makeStyle "$TEMPLATE" "404040" "808080" "202020" "00FF80" "00FF80" "00FF80" "808080" "00FF80" "00FF80" "themes/DarkMint.qss"
makeStyle "$TEMPLATE" "404040" "808080" "202020" "80FF00" "80FF00" "80FF00" "808080" "80FF00" "80FF00" "themes/DarkGreen.qss"
makeStyle "$TEMPLATE" "404040" "808080" "202020" "0080FF" "0080FF" "0080FF" "808080" "0080FF" "0080FF" "themes/DarkBlue.qss"
makeStyle "$TEMPLATE" "404040" "808080" "202020" "8000FF" "8000FF" "8000FF" "808080" "8000FF" "8000FF" "themes/DarkViolet.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "b58900" "b58900" "b58900" "93a1a1" "b58900" "b58900" "themes/SolarizedDarkYellow.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "cb4b16" "cb4b16" "cb4b16" "93a1a1" "cb4b16" "cb4b16" "themes/SolarizedDarkOrange.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "dc322f" "dc322f" "dc322f" "93a1a1" "dc322f" "dc322f" "themes/SolarizedDarkRed.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "d33682" "d33682" "d33682" "93a1a1" "d33682" "d33682" "themes/SolarizedDarkMagenta.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "6c71c4" "6c71c4" "6c71c4" "93a1a1" "6c71c4" "6c71c4" "themes/SolarizedDarkViolet.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "268bd2" "268bd2" "268bd2" "93a1a1" "268bd2" "268bd2" "themes/SolarizedDarkBlue.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "2aa198" "2aa198" "2aa198" "93a1a1" "2aa198" "2aa198" "themes/SolarizedDarkCyan.qss"
makeStyle "$TEMPLATE" "002b36" "93a1a1" "073642" "859900" "859900" "859900" "93a1a1" "859900" "859900" "themes/SolarizedDarkGreen.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "b58900" "b58900" "b58900" "586e75" "b58900" "b58900" "themes/SolarizedBrightYellow.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "cb4b16" "cb4b16" "cb4b16" "586e75" "cb4b16" "cb4b16" "themes/SolarizedBrightOrange.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "dc322f" "dc322f" "dc322f" "586e75" "dc322f" "dc322f" "themes/SolarizedBrightRed.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "d33682" "d33682" "d33682" "586e75" "d33682" "d33682" "themes/SolarizedBrightMagenta.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "6c71c4" "6c71c4" "6c71c4" "586e75" "6c71c4" "6c71c4" "themes/SolarizedBrightViolet.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "268bd2" "268bd2" "268bd2" "586e75" "268bd2" "268bd2" "themes/SolarizedBrightBlue.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "2aa198" "2aa198" "2aa198" "586e75" "2aa198" "2aa198" "themes/SolarizedBrightCyan.qss"
makeStyle "$TEMPLATE" "fdf6e3" "586e75" "eee8d5" "859900" "859900" "859900" "586e75" "859900" "859900" "themes/SolarizedBrightGreen.qss"
Loading

0 comments on commit 7d12a08

Please sign in to comment.