22 Commits

Author SHA1 Message Date
ShaopengLin
c5f4c4df88 Introduce src/css_constants.h
Effort to reduce css value dependency
2024-10-23 15:42:13 -04:00
Veloman Yunkan
aa256d6e1e Text remains readable on selected library entry
Before this change a library entry having keyboard focus (selected with
tab and up/down keys) was not readable since the text was displayed in
white colour on light blue background.
2024-05-22 10:56:48 +04:00
Veloman Yunkan
301efe2b7a Longer library line separator
Now the library line separator extends to below the collapse/expand
control and highlighting on mouse hover covers the latter too.
2024-05-22 10:56:48 +04:00
Veloman Yunkan
24d6ac7162 Got rid of custom painting of the book thumbnail
Now ContentManagerModel returns for 0th column an icon object that can
be painted by `QStyledItemDelegate::paint()` correctly (albeit in a
slightly less indented position).

As a side-effect of this minor improvement of the design, the thumbnail
column is included in highlighting on mouse hover.
2024-05-22 10:53:26 +04:00
Nikhil Tanwar
e6cb442dc6 New widget: KiwixChoiceBox
This change adds a new widget called KiwixChoiceBox
The design inspiration is taken from here: https://harvesthq.github.io/chosen/#multiple-select
setType() takes a string to put on the label
We can add possible choices using the setSelections() method
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
75132af396 Move searcher to filter area
The search function is now moved to filters area for more consistency
Fix #554
2023-07-31 20:00:54 +05:30
Nikhil Tanwar
797aceebbe Hide sort indicator for icons column, put it on left for other columns
created ContentManagerHeader, inherited from QHeaderView, to implement not showing the sort indicator for first column.
Changed sort indicator position to left of text
2023-07-31 20:00:53 +05:30
Nikhil Tanwar
3431fd38da Minor improvements to view
When an item is hovered, colour changes to grey.
Change cursor to HandPointer in treeview
Open book description when item is clicked
Increase description box width
2023-07-28 17:45:12 +05:30
Nikhil Tanwar
20f082f73b Search books function
Added a search book function in the library
2023-07-28 17:13:56 +05:30
Nikhil Tanwar
24117ea581 Context menu for book rows on right click
Added a menu on right click to show options.
Current actions supported:
1. Open Book (if the library is showing local files)
2. Download Book (if the library is showing remote files)
3. Delete Book
2023-07-28 17:09:10 +05:30
Nikhil Tanwar
d95347fc88 Styles for headers
Added new styles for headers
2023-07-28 17:08:33 +05:30
Nikhil Tanwar
8f61b418f9 Replace QWebEngineView with QTreeView for ContentManagerView
We'll be using a QTreeView to display elements of the library.
2023-07-24 13:24:15 +05:30
Emmanuel Engelhart
3e3346c09d
Shorten CSS rule 2022-02-13 14:06:10 +01:00
Emmanuel Engelhart
fba7e94a33
Simplify CSS rule 2022-02-13 13:32:14 +01:00
Vishal
6e340893da library fonts changed to sans serif and homogenized 2020-07-22 14:41:01 +05:30
Kelson
d1cd606a25 Small CSS/icon fixes around top bar 2019-09-03 17:26:05 +02:00
luddens
ac59676bf7 add books sorting
Use a new api of listBooksIds

Click on a column header sets the "activeSort" variable with the sort's type
and the "sortOrderAsc" to true or false according to ascending or descending
sort. These variables are used to set css classes and to set the m_sortBy
ContentManager's member and m_sortOrderAsc ContentManager's member which are
used to get the books id's list sorted.
2019-07-24 16:23:18 +02:00
luddens
9a2efcb729 Flexbox overflow is hidden
To align vertically the flexboxes of the same column when the window is too
small, set the flexbox property "overflow" to "hidden" allows all these flexboxes
to have the same width no matter what its content
2019-06-24 15:58:06 +02:00
luddens
b72dc743a7 play/pause/cancel button new design 2019-06-12 14:46:52 +02:00
luddens
d93104584a library new design 2019-06-12 14:46:52 +02:00
luddens
7822bb3037 popup searchbar new design 2019-06-12 14:46:52 +02:00
luddens
949d50866c Split ContentManager.html into 3 files (html, css, js) 2019-05-13 13:58:18 +02:00