Commit graph

59 commits

Author SHA1 Message Date
Nathaniel Graham
15917a4260 Merge remote-tracking branch 'origin/Applications/17.08' 2017-09-22 09:39:45 -06:00
Nathaniel Graham
e80972e189 Fix sidebar labels being unreadable when selected or hovered over
Summary:
BUG: 382139

Previously these labels were white-on-light-blue with light themes; now they use the correct theme color property, and become black appropriately.

Test Plan:
Tested on KDE Neon (dev unstable). Verified that with the default Breeze color scheme, tab text is more readable when hovered over and then active but not in focus. See before and after:

{F3909142}

{F3909143}

Also tested these changes with all standard color schemes as well as the Oxygen theme to make sure that there were no visual regressions.

Reviewers: aacid, #okular, #kde_applications, broulik, sander, rkflx

Reviewed By: aacid, #okular, #kde_applications, rkflx

Subscribers: rkflx

Tags: #okular

Differential Revision: https://phabricator.kde.org/D7793
2017-09-22 09:38:48 -06:00
Kevin Funk
a53a2402ca clang-tidy: modernize-use-nullptr run
Semi-ACK'd by Albert :)
2017-09-06 00:19:48 +02:00
Albert Vaca
3c93b2523e Added missing overrides found by clang-tidy 2016-10-29 17:07:10 +02:00
Aleix Pol
109c4a4090 Improve Sidebar minimum size
Account for hidden elements
Don't make it like we're calculating the whole geometry although we're not
2016-10-29 17:04:50 +02:00
Aleix Pol
9e87989ade Fix moc mess 2016-10-29 16:40:03 +02:00
Albert Vaca
c71f308252 Fixes suggested by Clazy 2016-10-29 16:33:05 +02:00
Martin T. H. Sandsmark
2896b9c9a9 Remove KGlobalSettings include in sidebar 2016-07-24 16:59:58 +02:00
Martin T. H. Sandsmark
ad8b35a690 Fix updating of palette in sidebar 2016-07-24 16:59:34 +02:00
Martin T. H. Sandsmark
06edec49fd Don't use the toolbar font for the sidebar, toolbar != sidebar
For reference, not even Konqueror uses the toolBarFont() for its
sidebar.

In fact, this seems to be the only usage of toolBarFont() I could find
in any KDE application.
2016-07-24 16:52:54 +02:00
Martin T. H. Sandsmark
638fedb2ea Replace obsolete typedefs 2016-07-11 23:24:47 +02:00
Albert Astals Cid
8445660539 Merge remote-tracking branch 'origin/master' into frameworks 2015-10-18 22:29:00 +02:00
Albert Astals Cid
ce7f81fc06 Make the sidebar work on widget pointers and not ints
This way we don't need to worry if we add more widgets in the middle
2015-09-16 01:18:17 +02:00
Albert Astals Cid
1cd101b480 Small cleanup of the layer support feature
Tab replacing, function naming, include removal, @since addition, etc
2015-09-15 01:38:09 +02:00
Montel Laurent
6fab218de9 Use Q_NULLPTR 2015-08-18 15:12:07 +02:00
Saheb Preet Singh
f5f0947dd9 hided layers pane in a cleaner way 2015-08-16 23:49:36 +05:30
Saheb Preet Singh
854f047d47 hide layers from the sidebar when layers are not present in the document 2015-07-12 17:36:18 +05:30
Montel Laurent
d780d15ea9 Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	autotests/mainshelltest.cpp
	part.cpp
	part.h
	shell/shell.cpp
2015-03-17 08:47:52 +01:00
Saheb Preet Singh
1eafe4feb1 New shortcut to resize window to fit page
FIXED-IN: KDE Applications 15.08
BUGS: 326844
REVIEW: 115283
2015-03-17 00:20:11 +01:00
Montel Laurent
8e7429ddcc kdelibs4support-- 2014-10-19 15:24:33 +02:00
Montel Laurent
21360d6b7a Fix includes 2014-10-12 17:20:07 +02:00
Montel Laurent
2eacdea022 Port to new connect api 2014-10-01 19:40:48 +02:00
Montel Laurent
378f6847a2 Remove some deprecated kdelibs4support 2014-10-01 07:27:09 +02:00
Vishesh Handa
46cf7e46a5 Port away from KUrl::List 2014-08-13 13:07:44 +02:00
Vishesh Handa
077689c4d3 Port KAction and KMenu 2014-08-13 12:45:40 +02:00
Frederik Gladhorn
0ba233788c Use moc include style dictated by automoc
While it's generally not a great idea to include moc files at least this
compiles.
2014-08-09 00:21:03 +02:00
Albert Astals Cid
cd02dd6d3c Minor changes
Make the receivers be the ones that check for empty, not the senders
2014-04-09 23:34:18 +02:00
Jonathan Doman
89fd56c23b Launch documents from external sources in new tabs
FIXED-IN: 4.13.0
BUGS: 331872
BUGS: 332238
REVIEW: 116700
2014-04-09 23:29:58 +02:00
Albert Astals Cid
db53b2f359 Do not show the sidebar if it was hidden when defaulting to show the toc
BUGS: 327641
FIXED-IN: 4.11.95
2013-11-21 00:03:02 +01:00
Eike Hein
db1eb41171 Move KColorScheme instanciation out of the paint path.
REVIEW:108958
2013-02-19 11:52:11 +01:00
Eike Hein
a3b3545cab Port sidebar delegate to KColorScheme.
Certain KDE color schemes have Window Background and View Text
not contrasting, which causes invisible icon labels when using
QPalette::Text on QPalette::Base. An example is the default
color scheme in openSUSE 12.3.

Thanks to Will Stephenson for noticing.
CCMAIL:wstephenson@kde.org

It turns out that the Places sidebar in Dolphin suffers from
the same bug, so a similar change should be done there. Frank?
CCMAIL:frank78ac@googlemail.com
2013-02-13 12:59:55 +01:00
Elvis Stansvik
d066fb0004 Remember collapse state of sidebar when file is auto-reloaded
BUGS: 289010
REVIEW: 103517
2011-12-28 00:49:44 +01:00
Albert Astals Cid
ac79610a8b Set a focus proxy in case this widget ends up with focus
Should never happen, but as it is the "main" widget of the part it might end up there if someone just says part->mainwidget->setfocus or something like that
At least this way the focus does not go down the drain and ends up in the sidebar list, which is not optimal but is better than getting the keyboard focus lost
2011-12-16 00:27:51 +01:00
Montel Laurent
f9f65979f5 Normalize signals/slots 2011-07-31 21:22:04 +02:00
Albert Astals Cid
8a4e587931 forwardport r1185627 okular/branches/KDE/4.5/kdegraphics/okular/ui/sidebar.cpp: make sure the list is shown all the times we show the sidecontainer
forwardport r1185628 okular/branches/KDE/4.5/kdegraphics/okular/ui/sidebar.cpp: no need to look for a new current item if the sidebar is not even shown

svn path=/trunk/KDE/kdegraphics/okular/; revision=1185629
2010-10-13 23:40:19 +00:00
Albert Astals Cid
89968298a5 forwardport SVN commit 1152384 by aacid:
Make sure that setting the toc to be the current index does not break sidebar
visibility
Make Sidebar::isSidebarVisible symmetric with Sidebar::setSidebarVisibility
If showing the container make sure the list is also shown

svn path=/trunk/KDE/kdegraphics/okular/; revision=1152385
2010-07-20 22:09:33 +00:00
Eike Hein
1f3536bc83 Kill two superfluous empty lines I added by mistake. SVN_SILENT
svn path=/trunk/KDE/kdegraphics/okular/; revision=1034542
2009-10-13 00:06:24 +00:00
Eike Hein
796958b1a7 Fix the mouse interaction model of the sidebar icon list
to allow changing sidebar pages by keeping the left mouse
button pressed and moving the cursor over the icon list,
similar to a popup menu or the treelist version of the
tab bar in Konversation.

A remaining bug in the sidebar is that switching iconlist
items using the keyboard arrow keys won't switch sidebar
pages. I will fix that next time, unless someone else is
faster.

svn path=/trunk/KDE/kdegraphics/okular/; revision=1034540
2009-10-13 00:03:54 +00:00
Pino Toscano
9a4b23d866 force the sidebar widget to not be transparent
svn path=/trunk/KDE/kdegraphics/okular/; revision=957332
2009-04-21 20:39:01 +00:00
Pino Toscano
93953ef2c0 use the kde toolbar font for the text in the sidebar
svn path=/trunk/KDE/kdegraphics/okular/; revision=955952
2009-04-18 23:18:00 +00:00
Pino Toscano
1aa5083856 double (to 600px) the maximum size allowed for the side pane
CCBUG: 176780

svn path=/trunk/KDE/kdegraphics/okular/; revision=910272
2009-01-12 22:28:41 +00:00
Sebastian Trueg
00f069f873 Reverted part of my patches based on pinotree's wishes. :)
svn path=/trunk/KDE/kdegraphics/okular/; revision=887165
2008-11-21 11:45:00 +00:00
Sebastian Trueg
b787abb5d8 Nobody reacted on my email to the devel mailing list, so I suspect that noone has any objections to my patches.
Anyway, this is what happens:
* I replaced the zoom combobox in the toolbar with the fit to width/page buttons. For one they look much cleaner and
  also most users would never use the freezooming anyway.
* Removed the frame from the sidebar, making for a cleaner overall look. After all, nothing else has a frame.
* Let the statusbar stretch over the full width of the window. This again makes the app look cleaner.
* Used the same trick as in Gwenview: let the background shine through -> clean++
* Use QToolButton instead of QPushButton for the minibar buttons to fit the other buttons in all apps.

svn path=/trunk/KDE/kdegraphics/okular/; revision=887160
2008-11-21 10:50:16 +00:00
Pino Toscano
c1463fd924 use the KIconLoader enum values for the sizes
initial patch by Rafael Fernández López

svn path=/trunk/KDE/kdegraphics/okular/; revision=818095
2008-06-07 17:03:31 +00:00
Pino Toscano
02ac5fb1dd ask the style to draw the background of the items
also, manually do the "highlight on hover" effect only for non-kstyle-based styles, as kstyle provide that effect on its own

svn path=/trunk/KDE/kdegraphics/okular/; revision=815952
2008-06-02 21:17:40 +00:00
Malcolm Hunter
b6124a900b Typo fixes
svn path=/trunk/KDE/kdegraphics/okular/; revision=795906
2008-04-11 21:16:43 +00:00
Pino Toscano
b6c6c3d974 remove space between the side icon list and its panel
svn path=/trunk/KDE/kdegraphics/okular/; revision=787750
2008-03-19 20:12:48 +00:00
Pino Toscano
b897d75b0b Correctly determine if the sidebar is shown or not (visible != !hidden, grr)
BUG: 156445

svn path=/trunk/KDE/kdegraphics/okular/; revision=765184
2008-01-23 11:56:47 +00:00
Pino Toscano
9e5f8163f7 recalc correctly the width of the sidebar when changing the icon size or toggling the text
svn path=/trunk/KDE/kdegraphics/okular/; revision=732427
2007-11-03 20:48:10 +00:00
Pino Toscano
d51d279afb Make it possible to choose the size for the icons in the sidebar, by choosing it in the popup menu of the sidebar itself.
CCBUG: 151205

svn path=/trunk/KDE/kdegraphics/okular/; revision=731824
2007-11-01 22:58:09 +00:00